Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Conversation

@AdeelKhurshid-minted
Copy link
Contributor

@AdeelKhurshid-minted AdeelKhurshid-minted commented Sep 30, 2016

Causes Chrome to start up with multiple tabs and no honor user-agent sent in by the selenium driver.

image

@AdeelKhurshid-minted
Copy link
Contributor Author

I see notes about finicky builds so I assume thats the case here.

@elgalu
Copy link
Owner

elgalu commented Oct 1, 2016

Thanks @AdeelKhurshid-minted your fix looks correct, I've restarted the builds and will take a look into this probably next week.

@elgalu
Copy link
Owner

elgalu commented Oct 4, 2016

@AdeelKhurshid-minted I'm pretty sure your fix is correct. I've restarted the job 5 times or more already and it always fails with Docker version 1.12.2-rc1 + Docker compose 1.8.0 but I can't see how that can be related to this fix. Master is passing ok.

Anyway I'll work to figure out the problem, can you write here how are you passing the user-agent so I can add some tests to the suite? Is is through -e CHROME_ARGS or you do it through you selenium source code? Please paste it, thanks.

@AdeelKhurshid-minted
Copy link
Contributor Author

AdeelKhurshid-minted commented Oct 4, 2016

@elgalu I am using webdriver.io version "4.2.8".

In my wdio.conf.js I have:

var chromeopts = [];
if (process.env_MOBILEBROWSER || process.env.MOBILEBROWSER) {
    deviceopts = { deviceName: 'Google Nexus 5'};
}
.....
    capabilities: [{
        browserName: "chrome",
        version: "*",
        platform: "LINUX",
        chromeOptions: {
             args: chromeopts,
             mobileEmulation: deviceopts
        }
    }],

@elgalu
Copy link
Owner

elgalu commented Oct 5, 2016

Can you sign the licence/cla ?

@AdeelKhurshid-minted
Copy link
Contributor Author

Signed. Thanks.

@elgalu elgalu merged commit b2dbf9e into elgalu:master Oct 6, 2016
@elgalu
Copy link
Owner

elgalu commented Oct 6, 2016

Thanks, merged! I also added some mobileEmulation tests

image

Sample video:
https://youtu.be/CwVIbd-2iHI

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants