-1
need to perform the following procedure:
- 1) browsing with user-agent mobile (I can do)
- open the site www.site.com and login (I can do)
- 2) Change user-agent to mobile(I cannot do)
- access an option on www.site.com that only appears if you switch to mobile after logging in(from now on I can access it)
Well, my difficulty is to be able to change the user-agent to a mobile option already with the webdriver session open and in progress. For example, if you were to do this by hand, it would open Devtools with "Ctrl+Shift+I" and then "Ctrl+Shift+M", and that’s it, switch to mobile
But in python, for Selenium I only find instructions to start the webdriver session in mobile from the start of the execution. But for this site in specific I have to log in to Desktop mode, and only then change to mobile.
You don’t need to give me the code "chewed", if at least you have some hint of what I have to research to learn and then implement in the code already help.
Thank you