firefox

How to set up geckodriver with Selenium in google-colaboratory?

How to set up geckodriver with Selenium in google-colaboratory? Question: For some context, I’m using Google Collab to try to make a webscraper, and for that I want to use selenium. But I can’t seem to set up the web driver properly. Google uses Ubuntu servers I believe. This is my first time trying to …

Total answers: 1

selenium.common.exceptions.InsecureCertificateException: probably due to HSTS policy

selenium.common.exceptions.InsecureCertificateException: probably due to HSTS policy Question: I am trying to open microsoft outlook using selenium firefox, but I get this when the url opens Connection to outlook.live.com has a security policy called HTTP Strict Transport Security (HSTS), which means that Firefox can only connect to it securely. The error I get on terminal is …

Total answers: 2

Pywinauto Not Entering Address into Mozilla Address bar

Pywinauto Not Entering Address into Mozilla Address bar Question: app = pywinauto.Application(backend="win32").start("C:\Program Files\Mozilla Firefox\firefox.exe") app = pywinauto.Application(backend="win32").connect(title_re=’.*Mozilla Firefox’, timeout=5) dlg_spec = app.window(title="Mozilla Firefox", class_name="MozillaWindowClass") #dlg_spec.print_control_identifiers() child_window = dlg_spec.child_window(class_name="MozillaCompositorWindowClass") address_bar = child_window.child_window(control_type=’Edit’, class_name=’Edit’) address_bar.set_edit_text("https://google.com") The above script launches Mozilla Firefox window and then throws the following runtime error after about 5-10 seconds: pywinauto.timings.TimeoutError: During handling of …

Total answers: 1

Python Script Failing to Open Firefox.lnk file on Desktop Path

Python Script Failing to Open Firefox.lnk file on Desktop Path Question: TLDR; I have a python script that uses autopygui to click on a file and open it, but it does not work with lnk files located in the same path. I have a little script using pyautogui to screenshot a desktop icon and save …

Total answers: 2

How to launch the python selenium script on Ubuntu?

How to launch the python selenium script on Ubuntu? Question: I’m trying to launch it after xvfb-run firefox but it returns me these mistakes. When I try to launch it with python3 command it returns me NotADirectoryError: [Errno 20] Not a directory: ‘/home/druid/.wdm/drivers/geckodriver/linux64/v0.31.0/geckodriver’ Here’s a piece of my code: import time from selenium import webdriver …

Total answers: 1

Having difficulties using selenium module

Having difficulties using selenium module Question: I’m still new to python and I was experimenting with selenium. It opens a Firefox browser when I use it directly from the Windows terminal. But when I change the directory to desktop and try to open the browser from there, it say the ‘geckodriver’ isn’t in Path. I …

Total answers: 1

Selenium Firefox Python: Can we use relative path for downloads folder?

Selenium Firefox Python: Can we use relative path for downloads folder? Question: Hello 🙂 This is related to my question here Selenium Firefox Python: How to change download directory thank you so much @Thamognya for the assistance. Can we use a relative path for this? We’re using Docker in CircleCI and it will be much …

Total answers: 1

Firefox Webdriver Install Addon to Remote Webdriver

Firefox Webdriver Install Addon to Remote Webdriver Question: I have the following code that connects to a Remote Webdriver and installs an extension options = webdriver.FirefoxOptions() options.set_preference(‘intl.accept_languages’, ‘en,en-US’) options.add_argument(‘–log-level=3’) # Not logs will be displayed. options.add_argument(‘–mute-audio’) # Audio is muted. options.add_argument(‘–enable-webgl-draft-extensions’) options.add_argument(‘–disable-infobars’) # Disable popup options.add_argument(‘–disable-popup-blocking’) # and info bars. profile = webdriver.FirefoxProfile() profile.add_extension(‘/path/to/tampermonkey.xpi’) driver …

Total answers: 1

Element is not getting selected in Selenium Python Firefox Web Scraping

Element is not getting selected in Selenium Python Firefox Web Scraping Question: I have problem with element selection checkbox with one of the list item in below code snippet. I’m able to select 1st 2nd & 4th Element in below code, however I’m not able to select 3rd element. When I give only Taj Hotels, …

Total answers: 1

How to get text element in html head by selenium?

How to get text element in html head by selenium? Question: I am trying to get a file name of a jpg from this link by selenium (Firefox driver). If I manually right click on the photo and download it, the file name will be 1-002.jpg When I try to browse the html by Firefox, …

Total answers: 2