driver.wait(until.elementLocated(webdriver.By.css('div.border-right:nth-child(2)')), 1000)
.then((element) => {
element.click();
});
I am using java-script for my test cases. I had an issue to upload image, upto click the upload button i did. I don't know how to fetch the data from the system storage because input
tag had a style as display:none
. When I tried
sendKeys()
--> elementNotInteractable error occurrs.
In this scenario how can I upload image using selenium webdriver in javascript without test framework?