Is there a way to automate my scripts to change the view on the website to a mobile view such as Iphone X? The picture attach has a button that selects the Iphone X as an example.
Based on this approach: http://chromedriver.chromium.org/mobile-emulation and this: https://www.katalon.com/resources-center/tutorials/using-selenium-webdriver-katalon-studio/
Somehow you can change it using below code:
import org.openqa.selenium.WebDriver import org.openqa.selenium.chrome.ChromeDriver import org.openqa.selenium.chrome.ChromeOptions import com.kms.katalon.core.webui.driver.DriverFactory Map<String, String> mobileEmulation = new HashMap<>(); mobileEmulation.put("deviceName", "iPhone X"); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.setExperimentalOption("mobileEmulation", mobileEmulation); WebDriver driver = new ChromeDriver(chromeOptions); DriverFactory.changeWebDriver(driver)
Get to the Camera settings window, camera in iPhone X is equipped with several features which, when configured correctly. Still, if you have any issue then you can contact iPhone Support Number for this issue.
I am sorry but in my case it’s not working