xpath found in chrome/firefox console, but not found by selenium ? any suggestion ?
And try chropath(chrome plugin) none of them work:
Java code both way:
List<WebElement> Elements = driver.findElements(By.xpath("/html/body/div[2]/div/div[1]/div[2]/div[2]/div[1]/div/div[3]/div[1]/div[4]/div[2]/textarea"));
new WebDriverWait(driver, 30).until(ExpectedConditions.elementToBeClickable(By.xpath("/html[1]/body[1]/div[2]/div[1]/div[1]/div[2]/div[2]/div[1]/div[1]/div[3]/div[1]/div[4]/div[2]/textarea[1]"))).sendKeys("testing");
Here is what the Selenium give:
Exception in thread "main" org.openqa.selenium.TimeoutException: Expected condition failed: waiting for element to be clickable: By.xpath: /html1/body1/div2/div1/div1/div2/div2/div1/div1/div3/div1/div[4]/div2/textarea1 (tried for 30 second(s) with 500 MILLISECONDS interval) at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:82) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:231) at message.hello.main(hello.java:148) Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.xpath: /html1/body1/div2/div1/div1/div2/div2/div1/div1/div3/div1/div[4]/div2/textarea1 For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T16:15:26.402Z' System info: host: 'daviss-MacBook-Pro.local', ip: '2600:1010:b06c:96a7:d93d:6b6e:3c3d:3826%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.2', java.version: '10.0.1'
Would like to put some text into the text area. if this possible with selenium ?
Also confirm that the page doesn't have any thing to do with iframe