You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use Selenium-Injector together with Selenium-Driverless? I need a duo like this because I want to use authenticated proxies to change them at will. If so, can you show an example of how to do it? My attempts don't work.
import asyncio
from selenium_injector import webdriver as si_wd
from selenium_driverless import webdriver as sd_wd
sd_drv = sd_wd.Chrome
async def main():
async with (si_wd.Chrome(base_drivers=(sd_drv,))) as driver:
# driver.injector.proxy.set_single(host="x.x.x.x", port=30001, password="x", username="x")
await driver.get("https://www.example.com")
while True:
await asyncio.sleep(5)
asyncio.run(main())
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to use Selenium-Injector together with Selenium-Driverless? I need a duo like this because I want to use authenticated proxies to change them at will. If so, can you show an example of how to do it? My attempts don't work.
Beta Was this translation helpful? Give feedback.
All reactions