Working nice, but some questions... #4
-
can you give some example, 2 days from javascript, node js how I came to python only for this lib ... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
from selenium_profiles.webdriver import Chrome
from selenium_profiles.profiles import profiles
profile = profiles.Windows() # or .Android()
profile["proxy"] = {
"proxy":"http://user1:pass1@example_host.com:41149"
}
driver = Chrome(profile=profile, injector_options=True, driverless_options=True)
driver.profiles.proxy.set_single("http://user2:pass2@example_host.com:41149")
print(driver.profiles.proxy.proxy)
driver.quit() # Execute on the End!
a lot of the syntax is the same as with selenium itsself. Therefore you can have a look at its documentation or selenium-profiles-documentation or selenium-injector documentation
yes, indeed, that's the point of this package.
Do you mean if there's a similar package for node-js ( Note: feel free to ask further questions. Also, please make use of the Discussion section |
Beta Was this translation helpful? Give feedback.
-
Closing as it seems to be resolved |
Beta Was this translation helpful? Give feedback.
proxies can be set in the profile or dynamically
chromedriver
. Therefore, chromedriver isn't needed