xxxxxxxxxx
Public void fileUpload(Stirng path)
{ WebELement upload = driver.findELement; Upload.sendKeys(path) }
xxxxxxxxxx
Public void fileUpload(Stirng path){
WebELement upload = driver.findELement; Upload.sendKeys(path)
}
• We need to locate the upload button in html.
• The element will have tag input.
• Then we do sendKeys by passing the path to file which we want to upload