Maybe that'll be better than browsing the link directly. At least you're testing the button.
I'm new to this, but as far as I know, the way you can refer items in a webpage is pretty code-dependant. Maybe you should ask the developer for help on how to identify those elements. If it's shown after a mouseover or another event, you can use the fire_event method of the element class (inherited by all elements). Hope it helps. El lunes, 12 de agosto de 2013 03:39:09 UTC-3, Srinivas Desai escribió: > > Yes the main reason why am doing this way is none of the objects are > recognizable. But i have x,y coordinates of all the objects. If i click an > object that will result in a popup and i have to test the popup results > also. > This is the main reason am completely depending on this approach. > > On Thursday, August 8, 2013 4:41:27 AM UTC+5:30, Chuck van der Linden > wrote: >> >> On Thursday, August 1, 2013 10:40:46 PM UTC-7, Srinivas Desai wrote: >> >>> Hi All, >>> >>> I need to know how can we click on a particular x and y co-ordinates in >>> the browser pane by using watir web driver. >>> I already have x,y co-ordinates with me, i just need to click. >>> Please let me know how it can be done. >>> >>> Thanks in advance. >>> >>> Regards, >>> Srinivas. >>> >>> >> using specific x,y coordinates is perhaps one of the best ways to create >> a brittle hard to maintain script. running the script on a different >> system with different browser size, zoom level, site re-designs, etc all >> can break the script. >> >> Is there a specific reason you are trying to do things this way? >> Normally there are far better ways to figure out where to click. And >> where those don't work there are tools like Sikuli that work visually which >> are still usually a better alternative to a fixed X,Y based action >> > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
