selenium-firefoxdriver

Python Selenium how to disable images in Firefox

Python Selenium how to disable images in Firefox Question: I am trying to disable images in Selenium (Python) using Firefox as webdriver and this code works: from selenium import webdriver firefox_profile = webdriver.FirefoxProfile() firefox_profile.set_preference(‘permissions.default.stylesheet’, 2) firefox_profile.set_preference(‘permissions.default.image’, 2) firefox_profile.set_preference(‘dom.ipc.plugins.enabled.libflashplayer.so’, ‘false’) driver = webdriver.Firefox(firefox_profile=firefox_profile) driver.get(‘http://www.stackoverflow.com/’) but apparently firefox_profile has been deprecated because I get always the same …

Total answers: 1

Selenium Python webdriver condition

Selenium Python webdriver condition Question: My script can give me 3 separate webdrivers based on what I want i.e., my script can either install the chromedriver or safaridriver, or firefoxdriver. As an example: chromedriver: <selenium.webdriver.chrome.webdriver.WebDriver (session="8032fa9146e8fc2a764aa278a1521014")> safaridriver: <selenium.webdriver.safari.webdriver.WebDriver (session="7703B595-D074-40C4-82D5-D4A265C2AAB2")> firefoxdriver: <selenium.webdriver.firefox.webdriver.WebDriver (session="d2549d48-bec3-4ccc-b95f-7339bbe4ca60")> What is the best way to have the script run differently based on …

Total answers: 1

Preventing "Warning Potential Security Risk Ahead" in selenium python Firefox

Preventing "Warning Potential Security Risk Ahead" in selenium python Firefox Question: So when using selenium python with firefox I need to prevent this: This is what I have already tried profile = webdriver.FirefoxOptions() profile.accept_insecure_certs = True profile.accept_untrusted_certs = True firefox = webdriver.Firefox(executable_path=utils.str_master_dir(‘geckodriver.exe’), options=profile) … Any help would be appreciated thanks. Asked By: Ari Frid || …

Total answers: 1

I'm trying to scrape a table web-site with different table option values

I'm trying to scrape a table web-site with different table option values Question: I’m trying to scrap a table web-sites (an example is in this url: https://whalewisdom.com/filer/berkshire-hathaway-inc#tabholdings_tab_link ). But there are different option values in this table. In particular I Would like to set the "Quarter View" option in: Q4 2021 13F Filings The currently …

Total answers: 1

Selenium using Python – Geckodriver executable needs to be in PATH

Selenium using Python – Geckodriver executable needs to be in PATH Question: I am going over Sweigart’s Automate the Boring Stuff with Python text. I’m using IDLE and already installed the Selenium module and the Firefox browser. Whenever I tried to run the webdriver function, I get this: from selenium import webdriver browser = webdriver.Firefox() …

Total answers: 36

Selenium-Debugging: Element is not clickable at point (X,Y)

Selenium-Debugging: Element is not clickable at point (X,Y) Question: I try to scrape this site by Selenium. I want to click in "Next Page" buttom, for this I do: driver.find_element_by_class_name(‘pagination-r’).click() it works for many pages but not for all, I got this error WebDriverException: Message: Element is not clickable at point (918, 13). Other element …

Total answers: 7