Click here to Skip to main content
14,773,387 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.
driver.ExecuteScript("__doPostBack('ctl00$Content$Menu1','1');");
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.
Posted
Updated 25-Jul-18 4: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