Forum Discussion

testfeast's avatar
testfeast
Occasional Contributor
2 years ago

Name Mapping not working on remote browser

The name mapping and test cases work fine on local browsers, but would complain about page or object not found when running headless remote browsers and in parallel testing. 

I have the following setup for browser name mapping:

For headless setup I have:

 

server = "localhost"
capabilities = {
    "browserName": "chrome",
    "headless" : "true",
    "screenResolution": "1920x1080",
    "platform" : "Headless",
    "record_video": "true"
    }
Browsers.RemoteItem[server, capabilities].Run(url)

 

Is this the correct way to work with name mapping on headless browser?

12 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Something else stood out to me - are you running the headless tests on a remote machine?

      • Marsha_R's avatar
        Marsha_R
        Champion Level 3

        I asked because you said "remote browsers" a couple of times and that's a different path for troubleshooting than this might be.

         

        When you are running the headless test, does it fail on the very first object or does it work for a while and then eventually come up with an error?