Skip to main content
deleted 1 character in body
Source Link
PDHide
  • 11.1k
  • 2
  • 16
  • 43

You shpouldshould be clicking the Button tag adnand not the span tag, please use the below locator:

WebElement submit = driver.findElement(By.xpath("//span[contains(text(),'Submit')]/..")

You shpould be clicking the Button tag adn not the span tag, please use the below locator:

WebElement submit = driver.findElement(By.xpath("//span[contains(text(),'Submit')]/..")

You should be clicking the Button tag and not the span tag, please use the below locator:

WebElement submit = driver.findElement(By.xpath("//span[contains(text(),'Submit')]/..")
Source Link
PDHide
  • 11.1k
  • 2
  • 16
  • 43

You shpould be clicking the Button tag adn not the span tag, please use the below locator:

WebElement submit = driver.findElement(By.xpath("//span[contains(text(),'Submit')]/..")