[Wtr-general] Click on a pixel location

Paul Rogers paul.rogers at shaw.ca
Wed Dec 6 15:31:53 EST 2006


if i remember, there is a method in IE called something like

element_at( x, y)

it might be possible to use that to do what you need. But as others have said, this is a very fragile way of doing automation

Paul
-------------- next part --------------
There are many ways to access controls, does the textbox have any
attributes? id, name, etc? If it does then you can use the standard set
method:
ie.text_field(:name, "username").set("admin")

Are you getting errors accessing it? If so what errors? If the text field
doesn't have any identifiable attributes, you can also use index:
ie.text_field(:index, 3).set("admin")

There may be a way to pixel click, but I wouldn't recommend it as it's
subject to breaking pretty quickly. The above options should work. If not,
post some of the html code and more information.
-Charley

On 12/5/06, Ankur Gupta <forum-watir-users at openqa.org> wrote:
>
> Using watir is it possible to click on a location that can be specified
> with x and y coordinate (pixels)
>
> I am trying to automate JD Edwards screens using Watir, i am stuck at a
> portion where the object is not being identified. The textbox which i have
> to type also cant be reached by using Keyboard Tab.
>
> Any other workarounds?
> ---------------------------------------------------------------------
> Posted via Jive Forums
> http://forums.openqa.org/thread.jspa?threadID=5614&messageID=15651#15651
> _______________________________________________
> Wtr-general mailing list
> Wtr-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20061206/ac31dbc9/attachment.html 
-------------- next part --------------
_______________________________________________
Wtr-general mailing list
Wtr-general at rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general


More information about the Wtr-general mailing list