Getting “Nosuch element Exception” in Selenium Though XPATH is correct. Not sure is this due to Shadow DOM. Please confirm
问题 I am trying to automate Salesforce application Using Selenium and getting NoSuchelementException though XPATH is correct and valid for particular object. When i have searched the issue, it might be reason for Shadow DOM. For EX: So XAPTH i have written like, driver.findElement(By.xpath("//input[@name='Name']")).sendKeys("Jams"); or driver.findElement(By.xpath("//input[@id='input-299']")).sendKeys("Jams"); This XPATH is highlighting in Console as well. But while automating it throws