[Wtr-general] Click on a pixel location

Charley Baker charley.baker at gmail.com
Wed Dec 6 13:17:17 EST 2006


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/c3f40f80/attachment.html 


More information about the Wtr-general mailing list