nateshmbhat / webbot

Web automation library for simple and easy end to end testing and web browser automation that offers super charged features while keeping it simple to use and master
https://pypi.org/project/webbot/
Mozilla Public License 2.0
239 stars 87 forks source link

Couldn't find the option to configure proxy in webbot #43

Closed revshell0 closed 3 years ago

revshell0 commented 3 years ago

@nateshmbhat How can I configure a proxy to redirect the traffic through my specified location?

Say, I want the traffic to go through my Burp proxy tool hosted at http://localhost:8080, how do I make it happen?

This is one of the biggest requirements while doing QA (Quality Analysis) of a website.

Please advise. Thanks.

issue-label-bot[bot] commented 3 years ago

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.82. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

revshell0 commented 3 years ago

@nateshmbhat Below is the equivalent code snippet in Selenium.

from selenium import webdriver

PROXY = "http://localhost:8080"

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--proxy-server=%s' % PROXY)

driver = webdriver.Chrome(options=chrome_options)
driver.get("https://github.com")

If you can somehow incorporate this in webbot, maybe as an additional constructor, that would be awesome.

Something like:

from webbot import Browser
driver = Browser(proxy = "http://localhost:8080")

Please consider this request. Thanks!

nateshmbhat commented 3 years ago

Sure. Adding it. Thanks for the suggestion.

revshell0 commented 3 years ago

@nateshmbhat woahhhhh!!!! that was quick! thank you for the prompt action! I would definitely recommend this library to all my colleagues!