Forum Discussion

ChrisG2991's avatar
ChrisG2991
New Contributor
3 days ago

TestComplete can't upload file in headless mode

Hi,

 

I have a test that interacts with windows popup to select a file and upload it. It uses the following object to perform the action:

It works fine when I run the test normally, but when I'm running in headless mode, I'm getting the error below:

Is there a way around this?

 

2 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    I would try doing a Repair on TestComplete. If that doesn't help, then contact Support directly. Here's the link:

    https://support.smartbear.com/testcomplete/message/

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Headless is without drawing UI content, but you seem to be interacting with the Open dialog, which requires to the draw the UI. I also think, that headless requires using XPath expressions and CSS selectors.

    There may be a driver, which allows you to upload and save files via headless.