You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to automate an application that requires us to choose a file from the Select file window. (Please note, there is no text box /input field where we can give the path of the file)
We are using AutoIt / Robot class for other browsers.
But for Safari we are unable to even open the File chooser window. Safari blocks it.
Is there any workaround for the same?
Attached is the screen shot of the error
The text was updated successfully, but these errors were encountered:
There has to be a file input field somewhere in the page, possibly hidden, for the page to trigger the file select window to open. The workaround is to execute JS to change the elements style and make that file input visible then send keys to that element for the file name you want to upload
Unfortunately as you have found, you cannot use the safari outside of using the w3c API and safaridrive while in automation. If you think this is in error, you can raise an issue with Apple: https://bugreport.apple.com/
OS:
10.13.4 (High Sierra)
Selenium Version:
3.12.0
Browser:
Safari (11.1)
I am trying to automate an application that requires us to choose a file from the Select file window. (Please note, there is no text box /input field where we can give the path of the file)
We are using AutoIt / Robot class for other browsers.
But for Safari we are unable to even open the File chooser window. Safari blocks it.
Is there any workaround for the same?
Attached is the screen shot of the error
The text was updated successfully, but these errors were encountered: