Any way to use mobile_emulate? #1065
Unanswered
K4zuki-dev
asked this question in
Q&A
Replies: 2 comments
-
how about user-agent? options.add_option(--user-agent="Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1") |
Beta Was this translation helpful? Give feedback.
0 replies
-
As far I know, this currently isn't possible. As issue, it currently doesn't manage to be fully undetected by itsself, but wrapping it around undetected-chromedriver works as intended. A example script would be: from selenium_profiles.driver import driver as mydriver
from selenium_profiles.profiles import profiles
from selenium.webdriver.common.by import By # locate elements
mydriver = mydriver()
driver = mydriver.start(profiles.Android(), uc_driver=True) # or .Windows()
# get url
driver.get('https://browserleaks.com/client-hints') # test client hints
input("Press ENTER to exit: ")
driver.quit() # Execute on the End! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Quesiton is already in the title, is there any way to emulate an mobile phone with this? Just like Selenium (normal) the mobile_emualtion
Beta Was this translation helpful? Give feedback.
All reactions