You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for this very easy to use library - It's great, actually.
Unfortunately, I'm struggling to get the chrome driver to confirm (echo back) that it has its mobileEmulation option set. No matter what I try, it keeps showing me that the mobileEmulationEnabled capability is false.
Wondering if someone already has done this and can share an example or direct me.
What I'm actually trying to do is emulate a swipe left:
But I get an error about the move, and I presume that it is because the hasTouchScreen capability is false, and I further presume that is because mobileEmulationEnabled is false (the driver confirms the settings via driver.getCapabilities). All in all, I'm feeling over-extended on presumptions :-). Any assistance you can lend is much appreciated.
FWIW, I've seen this and am setting addCapability prior to getSeleniumDriver functionally similar to this:
letglobalDriverReferences;constautomatedBrowsers=seleniumAssistant.getLocalBrowsers();Promise.all(automatedBrowsers.map(browserInfo=>{// Set all chrome browsers to emulate iPhone 6if(browserInfo.getId()==='chrome'){browserInfo.addCapability('mobileEmulation',{deviceName: 'iPhone 6'});}returnbrowserInfo.getSeleniumDriver();})).then(drivers=>{globalDriverReferences=drivers;});
Here's how I get Chrome Driver to confirm its current capabilities:
One thing I didn't realise when writing this (and later discovered with Saucelabs) is that capabilities + calling withBrowser() is that one will override the other. I don't think I ever propagated the changes over to local browsers.
If I get a chance I'll dig around and see if there is anything I can find / fix.
Hello, thanks for this very easy to use library - It's great, actually.
Unfortunately, I'm struggling to get the chrome driver to confirm (echo back) that it has its
mobileEmulation
option set. No matter what I try, it keeps showing me that themobileEmulationEnabled
capability isfalse
.Wondering if someone already has done this and can share an example or direct me.
What I'm actually trying to do is emulate a swipe left:
But I get an error about the move, and I presume that it is because the
hasTouchScreen
capability is false, and I further presume that is becausemobileEmulationEnabled
is false (the driver confirms the settings viadriver.getCapabilities
). All in all, I'm feeling over-extended on presumptions :-). Any assistance you can lend is much appreciated.FWIW, I've seen this and am setting
addCapability
prior togetSeleniumDriver
functionally similar to this:Here's how I get Chrome Driver to confirm its current capabilities:
The text was updated successfully, but these errors were encountered: