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
I'd like to reproduce it with cuprite. I looked in the main repositories using cuprite (using this page). None is testing executing system tests on mobile.
Here is my current attempt.
I tried to specify the mobileEmulation option in different places.
The browsers is not using the mobile emulation.
Capybara.register_driver(:cuprite)do |app|
Capybara::Cuprite::Driver.new(app,window_size: [360,640],screen_size: [360,640],browser_options: {'no-sandbox': nil,'mobileEmulation': {'deviceMetrics'=>{'width'=>360,'height'=>640,'pixelRatio'=>3.0},'userAgent'=>'Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 5 Build/JOP40D) '\
'AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19',},},headless: false,mobile_emulation: {'deviceMetrics'=>{'width'=>360,'height'=>640,'pixelRatio'=>3.0},'userAgent'=>'Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 5 Build/JOP40D) '\
'AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.166 Mobile Safari/535.19',},)end
What am I missing ?
The text was updated successfully, but these errors were encountered:
@grekko sadly it's not solved. Selenium manages to make it work. I think it may need to configure to browser to work in a certain mode so that it all tabs and service worker uses the same user-agent, the one you configured.
I briefly checked the Ferrum issues page and found rubycdp/ferrum#94 – so we'll have to wait for this being available before the ruby driver can make use of it.
I'm trying to migrate to cuprite.
I can't find any setup for mobile testing.
I have the following selenium configuration.
I'd like to reproduce it with cuprite. I looked in the main repositories using cuprite (using this page). None is testing executing system tests on mobile.
Here is my current attempt.
I tried to specify the mobileEmulation option in different places.
The browsers is not using the mobile emulation.
What am I missing ?
The text was updated successfully, but these errors were encountered: