How to get xPath of Google Maps

334 views
Skip to first unread message

Parag Kalra

unread,
Apr 4, 2009, 7:50:10 AM4/4/09
to selenium-users...@googlegroups.com
I have added "Google Maps" as a gadget in iGoogle - "www.google.co.in/ig". I want to navigate through the "Google Maps" using "Selenium".

The logic which I have in mind is:

$sel->mouse_down($locator)
$sel->mouse_out($locator)
$sel->mouse_up($locator)

The first statement will press the left mouse button, second will move the mouse there by navigating through google maps and final statement will release the mouse there by stopping the navigation.

But before I could test the above logic I want to get the locator/xPath of Google Maps. Right clicking over the Maps yeild nothing. Also I tried Firebug but couldn't get the locator.

Any pointers on how can I get locator/xPath.

Arun Kumar

unread,
Apr 5, 2009, 6:03:23 AM4/5/09
to selenium-users...@googlegroups.com
Using Firebug it is able to find Pan right,left,up,down buttons in igoogle. U can use those button to navigate google maps

Reply all
Reply to author
Forward
0 new messages