Forum Discussion

testfeast's avatar
testfeast
Occasional Contributor
9 months 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?