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

How to change browser to firefox? #77

Closed mushlih-almubarak closed 2 years ago

mushlih-almubarak commented 2 years ago

How to change browser to firefox?

joshiayush commented 2 years ago

You can't because there is no support for any other browser besides Google Chrome. You should open a feature request for that. Thanks!

manwapri commented 2 years ago

Try this:

Step 1: check your browser version For Chrome: go to Menu -> Help -> About Google Chrome

Step 2: Download browser driver as per the browser version from below link Chrome: https://sites.google.com/a/chromium.org/chromedriver/downloads Edge: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ Firefox: https://github.com/mozilla/geckodriver/releases Safari: https://webkit.org/blog/6900/webdriver-support-in-safari-10/

Step 3: extract the driver file and save it to, C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python39\lib\site-packages\webbot\drivers\

Step 4: In drivers forlder, make copy of chrome_windows (Simply copy the file & paste it in same folder) new file will be like "chrome_windows - Copy.exe" and delete the original "chrome_windows.exe"

Step 5: Rename the extracted file "chromedriver.exe" or any other name to "chrome_windows.exe"

mushlih-almubarak commented 2 years ago

Thank you very much!