This question already has an answer here:
- How to upload file in angularjs e2e protractor testing 8 answers
I have a test that I would like to upload pictures to a website that uses the defaulted OS upload modal. After I click upload I cannot access the upload screen. Is there a way around it? I saw online that it looked like there was but I had no idea how to implement what they were saying.
element(By.xpath("//div[@id='ngdialog28']/div[2]/div/div[6]/div/span")).click()
element(By.css("input[type=\"file\"]")).click();
element(By.css("input[type=\"file\"]")).clear();
element(By.css("input[type=\"file\"]")).sendKeys("C:\\ProgramData\\MeetingMatrix International\\MeetingMatrix 2010\\MMIDEMO\\Setups\\Test.mms");