driver.wait(until.elementLocated(.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 , 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 webdriver in without test framework?



Source link https://sqa.stackexchange.com/questions/34924/how-to-upload-an-image-selenium-webdriver-with-javascript

LEAVE A REPLY

Please enter your comment!
Please enter your name here