Not able to perform upload of video file using selenium webdriver. using the code I'm not getting any error but the process gets completed successfully. But, no file gets uploaded.
Can you help me fix it? The only thing I want to do is to attach a *.mp4 file. But as the cursor hovers, i'm unable to find the click or upload file.
Code Used
#1
uploadElement = driver.find_element_by_xpath("//*[text()='UPLOAD ANSWER']")
driver.execute_script("arguments[0].removeAttribute('style')", uploadElement)
uploadElement.sendKeys("/Users/Downloads/samsung_videos/0.mp4")
Below is the HTML CODE for the element.
<button class="ui button" role="button" style="background-color: rgb(31, 186, 238); color: white; border-radius: 0px; padding-left: 40px; padding-right: 40px; font-family: "Open Sans"; font-size: 17px; font-weight: 600; line-height: 20px; text-align: center; width: inherit; height: 50px; margin-top: 26px;">UPLOAD ANSWER</button>