I'm attempting to make a script that can transition to a mobile view on desktop on edge with python. I know you can inspect element with ctrl+shift+i the ctrl+shift+m which puts you into mobile mode, but I haven't been able to get selenium to do that. I'm probably doing something wrong but I tried using Key_down/Key_up and .sendKeys but it never seems to actually complete the shortcut. Is there a better way to accomplish this or is the method of attempting to use shortcuts the best way?
Aucun commentaire:
Enregistrer un commentaire