Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
507 views
in Technique[技术] by (71.8m points)

selenium - Unable to test the upload functionality in headless browser

I am testing the file upload functionality in our application.

The following are the steps

  1. Click on upload button
  2. Select the file in the upload wizard
  3. Click on Open button
  4. It displayed the selected image in the photo frame.

Note: There is no field to display the file path after selecting the file. After selecting the file, it will display the selected photo in the frame directly.

If we tried the execute the script in normal browser it is working fine. But if we try to execute the script in headless browser it is failing to upload the photo.

Can you please anyone help me to fix this issue?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...