Click here to Skip to main content
14,865,438 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
This code works with Selenium chrome driver in VB.
But I can't find what to use with C# and Firefox Driver. This code fails. Can you point me to a resource that might help?

The web page is mine and built with Asp.Net. It uses a menu control for showing 4 views.

What I have tried:

I have searched for a solution without success. If it is in the Selenium document, I am unable to find it.
Updated 25-Jul-18 3:33am

Use relative xpath, from its parent element suppose if you want to click menu item then start finding xpath with its parent element that is menu item.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900