Ayy3
Ayy3

Reputation: 11

How do I close windows file upload window in java/katalon/selenium?

I am trying to test uploading a file to a site in chrome but when the upload file button is pressed it automatically opens the windows file prompt. I need to be able to close the upload file prompt in the case when a file is not uploaded. Is there a way to either prevent this prompt from appearing in the first place, or close it after it opens? I cannot use the java robot, it does not work on the system that this test will be run on.

Upvotes: 1

Views: 225

Answers (1)

Rakesh
Rakesh

Reputation: 171

File Upload is usually handled via Sendkeys(FilePath(with Extension)) to the Input Tag.

Upvotes: 1

Related Questions