How to click Update button with no ID using C# Selenium?
<input type="button" value="Update" onclick="javascript:__doPostBack('ctl00$ContentPlaceHolder8$GridView1','Update$0')">
I used the code below but it does not work:
driver.FindElement(By.XPath("//*[@id='ContentPlaceHolder8_GridView1']/tbody/tr[2]/td[6]/input")).Click();

The desired element is n __doPostBack enabled element. So to
Click()on the element you have to induce WebDriverWait for theElementToBeClickable()and you can use either of the following Locator Strategies:CssSelector:XPath:Reference
You can find a couple of relevant detailed discussions in: