Many websites use User-Agent to determine the browser type. For a 3G mobile phone, the page content of the mobile phone is displayed. For a common browser, the page content is displayed.
Google Chrome can be easily used as a 3G mobile phone simulator. In Windows, enter the following command in "start"> "run" to start
Google Chrome browser can be easily used when mobile terminal simulator. In Windows "Start" and "Run" enter the following command, launch Google Browser, you can simulate the corresponding phone browser to access the 3G mobile Phone Web page, if: the previous open Google browser all closed :Google Android:Chrome.exe--user-agent= "mozilla/5.0 (Linux; U Android 2.2
As mobile device usage continues to increase, the testing of mobile pages becomes increasingly important.For the Internet company m Station test, if not through the dedicated Appium and other mobile testing tools, whether there is a convenient way to do? The answer, of course, is yes.Using Chrome driver and chrome and going to Chrome's toggle device mode mode, you'll be able to simulate the
As mobile device usage continues to increase, the testing of mobile pages becomes increasingly important.For the Internet company m Station test, if not through the dedicated Appium and other mobile testing tools, whether there is a convenient way to do? The answer, of course, is yes.Using Chrome driver and chrome and going to Chrome's toggle device mode mode, you'll be able to simulate the
We have previously introduced how to modify the Chrome browser to run parameters to simulate the mobile phone access site, but in the Chrome 32 and 33 after the introduction of a more convenient way, in the developer tool only need to set up to be able to easily simulate the various mobile phone model access effects.
First, if the chrome option has this analog device (such as iphone 6 Plus):1, start selenium Grid first, such as command: Java-jar Selenium-server-standalone-xxx.jar.2, the code is as follows:#Coding=utf-8 fromSeleniumImportwebdrivermobile_emulation= {"devicename":"Apple IPhone 6 Plus"}chrome_options=Webdriver. Chromeoptions () chrome_options.add_experimental_option ("mobileemulation", mobile_emulation) driver= Webdriver. Remote (command_executor='Htt
Using Chrome driver and chrome and going to Chrome's toggle device mode mode, you can simulate the phone side very well, directly below the codepublic class Runtest {Webdriver driver; @BeforeClass public void Beforeclass () {System.setproperty ("Webdriver.chrome.driver", "C:\Windows\System32\chrom Edriver.exe "); mapThe name of the device, the name
There is a small project that requires users to jump to different locations on the mobile side, but the data indicates that some users are based on the PC segment of the Chrome opera phone simulator, how do you block or jump to the PC page?
Reply content:
There is a small project that requires users to jump to different locations on the mobile side, but the data indicates that some users are based on t
Open the Chrome Browser, new tab, press "F12" to open the console, point to the lower right corner of the pinion, in the pop-up window select the Overrides tab, the user Agent Hook, in the bottom of the dropdown box to choose your favorite mobile phone UA, So you can disguise chrome as a mobile browser.
If the right side of the override geolocation also h
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.