mardi 2 avril 2019

Get Selenium to toggle device in Chrome

So I'm automating tests of our web app using Selenium and for one of the tests I'd like to tell Selenium (if possible) to toggle the device (like you can under devTools) to simulate a mobile device in order to test one of our mobile features. First- is it possible to do so? Secondly- if so, is it possible to do so for only a single TestMethod within my tests?

I've searched the app.config file as well as the run & test settings files but do not see anywhere to set that capability with Selenium.

I expect Selenium to open a browser and toggle the device using devTools to simulate accessing the site via mobile device so that I can test mobile-specific features.

Aucun commentaire:

Enregistrer un commentaire