Go down
Posts : 1
Join date : 2011-01-11

javascript Menu item

on Tue Jan 11, 2011 12:40 am
I am not able to record JavaScript menu item .
I have MetaQuery(on mouse over) i see queries ; when i click on queries Slenium is not recording anything?
i guess i need to use x-path..
how to use x-path??

any ideas??
Thanks in advance.
Posts : 383
Join date : 2009-07-30
Location : India

Re: javascript Menu item

on Fri Jan 28, 2011 8:08 pm

Try to get install xpather add on firefox. Generate xpath for the element you want by jsut righ click and select option "Show in Xpather"

it give you like


'you need to modify it according to your need like

Now you can use it selenium command like this
click | xpath=///div[@id='p1047']/div/div[1]/ul/li[3]/a/img

Hope this will help you . for more details on xpath , try to read on w3school for details. Best of luck.

Back to top
Permissions in this forum:
You cannot reply to topics in this forum