mobile-emulator

Open Chrome with Toggle Device Toolbar Activated

耗尽温柔 提交于 2020-01-01 07:24:16
问题 I'm working with java in Selenium, and I have to automaticed some tests, some how needs use Chrome Headless and Mobile Emulation. I know how to open chrome with "--auto-open-devtools-for-tabs" and with "mobileEmulation", but i need to open it with Toggle Device Toolbar activated. This mode, emulate the touch interactions events, replacing the click with a touch. How can i do start Chrome wiht this mode? (I´m using ChromeDriver v.2.358161) Here's my code: (...) Map<String, String>

Selenium - Mobile Emulation - how do I add user Agent to Chrome options while automating the emulator?

[亡魂溺海] 提交于 2019-12-25 02:26:50
问题 Below are the capabilities I added. I am getting a Google reCAPTCHA in my website which can be trespassed by adding user agent. But even after the addition of user agent I am still getting the captcha. Is there another way to add it? Map<String, String> mobileEmulation = new HashMap<>(); mobileEmulation.put("deviceName", "Pixel 2"); Map<String, Object> chromeOptions = new HashMap<>(); chromeOptions.put("mobileEmulation", mobileEmulation); chromeOptions.put("args", Arrays.asList("disable

Universal Windows 10 Emulator not starting up OS

。_饼干妹妹 提交于 2019-12-13 00:47:58
问题 The Windows phone emulator running Windows 10 has been working since I've installed it and last time I used the emulator was a few days ago. Now for some reason when I load my application emulator does not load the OS. here's the steps I go throuogh to run the app : -Run "Mobile Emulator 10.0.10586.0 720p 5 inch 1GB (which is my usual emulator to run)" Message box saying "Configuring Windows Phone for debugging ... " Another message box appears saying "Click "Retry" to run the emulator in