c# - How to upload file/ handle window using Selenium web driver -
i'm trying automate scenario in have upload document couldn't handle file upload window once click 'choose file' button on web application.
i'm using c# language , chrome browser.
you can try following if file element has 'input type = file': element(by.css('input[type="file"]')).sendkeys(pathtofile);
this not open file upload windows dialog. rather send required value input file field.
you can refer following links details: http://seleniumeasy.com/selenium-tutorials/uploading-file-with-selenium-webdriver
how upload file using selenium webdriver in java
regards,
sakshi
Comments
Post a Comment