Note- To check element attribute still you can use F12 that is nothing but default inspect element for all browser then check attribute and create your own xpath and try. If xpath is invalid- then you will get xpath error and if no matches found then it will display NULL. If single result found then it will show result 1 and if it matches with multiple items then it will show you count as well. On the top left page, you can write xpath and the right-hand side you can check the result. Black window will appear on top then you can play with xpath. Open your application and press SHIFT+CTRL+X. Find xpath in Chrome browserġ- Open below URL and Click on Add to Chrome button. This plugin will not generate xpath like firebug and other plugin do but yes, you can verify your xpath at least. Today I was googling something and found one good post for Xpath in chrome browser and I installed the same on my machine and it worked easily so thought of sharing with all. In the last post,we have seen Awesome plugin in Firefox for xpath and if you still have not used then please give a try. Till now we have seen that we have so many plugins for xpathin Firefox Browser like Firebug and Firepath but for Chrome, IE and another browser we do not have a plugin to identify xpath. Welcome to Selenium tutorial, in this post, we will see how to find xpath in Chrome browser for Selenium script development.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |