If you then need to test your XPath, you can use this technique: Thanks Man!!!!!!!!Please keep up this good work. Like the xpath which i get from Firefox or Chromeįinally I know why my testcases was failing on IE. Also it there any way that i can verify some xpath? Thanks to prepared and Shared information. Its really helpful to find Xpath value of a specific field. What to do who had written, bottom line is you found what you need. How many people did you share the information you found online.
#Sparkol videoscribe pro 2.0 final/visit skyisthebest.blogspot.com code#
"I found the code posted on Stack Overflow at:" The person who wrote the code as well the person who shared it, a hearty thanks to both of them!!!!!! I found the code posted on Stack Overflow at: Works like a charm! Thank you for sharing! Credit goes to the guy who created these JS. *I got this bookmarklets from some other site but can't remember which one. This will give you the XPATH of the element you seek. Now open up a notepad file, right click and select paste option. At his point you will get a confirmation, hit allow access button. Once you do this first select the favorite GetXPATH1 from the favorites menu and then select the second favorite GetXPATH2. This would involve clicking the left mouse button just before the element (link, button, image, checkbox, text etc) begins and dragging it till the element ends. Now to get the XPATH of elements just select the element with your mouse. Using these you can get the XPATH as easily as you get using xpather or any other firefox addon.Ģ)Type about:blank in the address bar and hit enterģ)From Favorites main menu select->Add favoritesĤ) In the Add a favorite popup window enter name GetXPATH1.ĥ)Click add button in the add a favorite popup window.Ħ)Open the Favorites menu and right click the newly added favorite and select properties option.ħ)GetXPATH1 Properties will open up. Bookmarklets are JavaScript code that you will add in IE as bookmarks and later use to get the XPATH of the element you desire. Well the only thing that works in this case is the Bookmarklets that were coded just for this purpose. But if you are testing an application that will work only in IE or the specific scenario or page that has this element will open-up/play-out only in IE then you cannot use any of the above mentione tools to find the XPATH. For most cases you can get the xpath of the elements that fall in your script using the above tools in firefox and tweak them a little (if required) to make them work in IE. But sadly there is no addon or tool avaialable that will do this for IE. There are many firefox addons like xpather, xpath-checker and firebug that will give you the xpath of an element in a second. Are you stuck with an application that only works in IE?ĭo you want the XPATH of an element that can be seen only IE? Unable to replicate the scenario in firefox.