Thanks
Control Web Page
Thanks
How advanced do you want to go? If you're using IE, the most effective way would be using COM, but that is a little more advanced. Otherwise, I would recommend using Javascript, which can be fed throught the URL Address Bar of most popular webbrowsers.
I'm really a newbie in these things. Can you give me an example of how it would be with COM and with Java?
Where can I read and learn the basics on this topic ...
Thanks
Here's a Javascript example (not Java :wink: ) - simpler - IMO better for a noobie
W3Schools is a great website.Where can I read and learn the basics on this topic ...
Any ideas?
Thanks
Try this:
javascript: alert(frames.length)
This reports 2.
I might try seeing if the element is in one of the frames. I would go about this by checking the innerText (or innerHTML) of each frame to see if the element is in one of those frames. This can be done like this (note the collection starts at 0 - so you would check frame[0] & frame[1]):
javascript: alert(frames[0].document.documentElement.innerText) ; or innerHTMLIf you do find that the element is in one of the frames, try clicking it like this:javascript: frames[[color=red]#[/color]].document.all.name.click()If you still have no luck, see if there are frames within this frame (this can get frustrating - I know ):javascript: alert(frames[[color=red]#[/color]].frames.length)I would keep working down into the frames until I found for sure what frame the element is in, then use the entire path to try to click it with javascript. I have some webpages at work that require something like this:javascript: frames[2].frames[3].frames[1].document.all.name.click()
the above link will give you frame depth by simply hmoving your mouse over an element
WIN or LEARN.
Its already there IMO Seans Element Spy does this as well@ tank - very nice! I hadn't specifically noted this functionallity in your program. I noticed it gives frame depth, as you stated, but I didn't notice the frame index numbers (frame[1].frame[3].frame[2]). Am I just missing this? Or do you have any plans of implementing this in the future? (or is there a more effective way of accessing this frame that I don't know about?)
edit see image
notice it shows frame1 this is one frame in from the primary document
it shows the frame element is at sourceindex 46 and has an id but no name
but no it will not show the frame index itself because i havent nor has Sean found an applicable programatic way of doing it
WIN or LEARN.
The Web recorder captures the innertext of the buttons
[innertext]=Consultar
Can I "send a press" to particular button based on the innertext?
iWeb functions
but i dont have the time for a thourogh walk thru
com_init() pwb:=iweb_getwin("somepage title") iweb_clickdomobj(pwb,"text of link you wish to click")
WIN or LEARN.
I have a lot to try...
I'LL be back :-)
duh jethrow, why don't you just access the frames by name/id. See, I learn eventuallybut no it will not show the frame index itself because i havent nor has Sean found an applicable programatic way of doing it
@vanessa - you already have the element id - why not access it by that?
javascript: document.all.[color=red]id=[/color]s_1_1_7_0_mb.click()
EDIT - see the next post by tank :oops: - don't include the id=
dont you mean@vanessa - you already have the element id - why not access it by that?
javascript: document.all.id=s_1_1_7_0_mb.click()
javascript: document.all.s_1_1_7_0_mb.click()
WIN or LEARN.
Not even things like :
javascript: alert(document.forms[0].elements[0].value)
:? :? :? :? :?