Skip to content

Working nice, but some questions... #4

Closed Answered by kaliiiiiiiiii
ruslanx3m asked this question in Q&A
Discussion options

You must be logged in to vote
  1. use this package with selenium-profiles and selenium-injector:
    proxies can be set in the profile or dynamically
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!
  1. You can't as Selenium-Driverless connects to Chrome directly, without the use of chromedriver. Therefore, chromedriver isn't needed

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tankow79
Comment options

Answer selected by kaliiiiiiiiii
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #3 on July 31, 2023 12:13.