Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» how to connect DB in selenium webriver
Fri Oct 06, 2017 4:09 pm by anbarasi

» How find any text in browser screen and click on it?
Thu Oct 05, 2017 2:02 pm by sandeepkommineni

» Selenium Webdriver
Tue Oct 03, 2017 1:35 pm by PiyushBiswas

» GRID setup tutorial.
Wed Sep 27, 2017 4:29 pm by johnyapp

» Drag & Drop Between Windows Using Selenium Driver
Wed Sep 27, 2017 2:10 pm by 26rondel

» Check if window is closed / verify input
Sat Sep 23, 2017 10:21 pm by brainstir

» How to work on pages with AJAX in selenium?
Mon Sep 18, 2017 6:08 pm by azharuddin

» pause test until user press a key like F2
Wed Aug 09, 2017 11:10 pm by djnforce

» Selecting the input for auto populating element
Sat Jul 29, 2017 7:53 pm by kdabbara

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

XPath issue in seleniumRC

View previous topic View next topic Go down

XPath issue in seleniumRC

Post by wayneb64 on Fri Oct 08, 2010 5:40 am

I am having problems finding an element to click that I can click/find just fine in Selenium IDE.

For example, selenium.getXpathCount("//img[@title]")) returns 12,
but selenium.getXpathCount("//img[@title='Generic Fields']") returns zero,
even though the IDE gave me that XPath, and it also works fine in XPathChecker.

wayneb64

Posts : 2
Join date : 2010-09-22

Back to top Go down

Re: XPath issue in seleniumRC

Post by Adviser on Sat Dec 11, 2010 8:57 pm

try to generate new xpath from xpather addon and use that one. may be that will work.
avatar
Adviser
------------------------
------------------------

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

http://seleniumforum.forumotion.net

Back to top Go down

Re: XPath issue in seleniumRC

Post by tulasi26ram on Tue Dec 14, 2010 10:43 pm

try to add-ons "Xpath checker" and "Firebug" in firefox and restart firefox. Now open the site which you want to test. You can find a Bug symbol on the right-corner of the status bar of the page.

1. suppose if you want to find the xpath of an element or list of elements. Do the following process.

1. Right click on the link for which you want to find the xpath. Go to "Inspect Element".
2. This will automatically opens your Firebug below the page you are viewing and focuses you mouse at the required position.
3. Again right click at the focused position, and go to copy xpath.
4. Now go back to the link for which you want to find the xpath.
5. Right click on the link again. select view xpath. A pop up window for xpath checker opens.
6. There you paste the copied xpath from where you copied the xpath.
7. In xpath checker you will fill like html/div[1]//div//div/ul/li , say for this time.
8. Now u have to write inside the div tag starting from the last in the xpath which you have seen in the xpath checker as

syntax : //div[@class='classname']//div[@class='classname']/ul/li

eg: //div[@class='textimage parbase']//div[@class='parbase']/li/a


If you still facing problem u can reach me at my skype id: tulasi26ram

or write a mail to tulasi26ram@yahoo.co.in with subject "Doubt in selenium"



tulasi26ram

Posts : 1
Join date : 2010-11-06

Back to top Go down

Re: XPath issue in seleniumRC

Post by Sponsored content


Sponsored content


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