Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

javascript Menu item

View previous topic View next topic Go down

javascript Menu item

Post by mtummala 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.

mtummala

Posts : 1
Join date : 2011-01-11

Back to top Go down

Re: javascript Menu item

Post by Adviser on Fri Jan 28, 2011 8:08 pm

Hi,

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
Code:

/html[@id='min-width']/body[@id='phpbb']/div/div/div/div[@id='wrap']/div[@id='page-body']/div[@id='content-container']/div[@id='outer-wrapper']/div[@id='wrapper']/div[@id='container']/div[@id='content']/div[@id='main']/div[@id='main-content']/div[@id='p1047']/div/div[1]/ul/li[3]/a/img

'you need to modify it according to your need like
xpath=///div[@id='p1047']/div/div[1]/ul/li[3]/a/img


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.

Bye

Adviser
------------------------
------------------------

Posts : 379
Join date : 2009-07-30
Location : India

http://seleniumforum.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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