JCPP448- Selenium file uploading test case

Description

While uploading the file in selenium, unable to get the file from the local desk to Jira issue creation as selenium is only supporting web-based browsers.

In this case, did some research and implemented a solution as below.

Instead of using OS-related window functionality, used *sendkeys *method to get the file upload

driver.findElement(By.xpath("//*[@id=\"issue-create\"]/div[1]/fieldset[2]/div/div/span/input")).sendKeys("/Users/Nagaraj/Desktop/Enable1.png");

CC:

Thanks,
Nagaraj

Environment

None

Assignee

Nagaraju Byagari

Reporter

Nagaraju Byagari

Labels

None

Support Entitlement

None

Fix versions

Priority

Minor
Configure