Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternatives to Chrome WebDriver?
#1
Hi Guys-Right now I'm using Chrome WebDriver to download some files from a URL daily. It usually works, but sometimes the script will open the browser, navigate to the site and even highlight the download icon like its going to download the file, but then it just stalls and I have to click the icon myself. Also, Chrome just seems to run slow. The script is below if anyone wants to take a look.

Has anyone had success using anything other than Chrome to accomplish a task like this? I can continue with what I'm doing and it won't totally mess me up but I'd prefer a method that would cause less headaches. I've included the script if anyone wants to take a look. Thanks in advance for any advice.

driver = webdriver.Chrome()
driver.wait = WebDriverWait(driver, 50)
driver.get(bs_url)
WebDriverWait(driver,20).until(EC.presence_of_element_located((By.ID,"table_all_pid_")))
WebDriverWait(driver,20).until(EC.element_to_be_clickable((By.ID,"table_all_pid_")))
Stats = driver.find_element_by_id("table_all_pid_").click()
Reply
#2
You can try a headless browser -- PhantomJS?
Reply
#3
(Apr-23-2018, 01:20 AM)scidam Wrote: You can try a headless browser -- PhantomJS?

I was going to give that a shot, but I guess it's now deprecated unfortunately.
Reply
#4
(Apr-23-2018, 02:03 AM)chisox721 Wrote: I was going to give that a shot, but I guess it's now deprecated unfortunately.
Both Chrome and FireFox has headless setup for there drivers in Selenium.
That's why PhantomJS(will still work but gives a message) is now deprecated is Selenium.
I have setup for both in Web-scraping part-2.
Reply
#5
(Apr-23-2018, 02:16 AM)snippsat Wrote:
(Apr-23-2018, 02:03 AM)chisox721 Wrote: I was going to give that a shot, but I guess it's now deprecated unfortunately.
Both Chrome and FireFox has headless setup for there drivers in Selenium.
That's why PhantomJS(will still work but gives a message) is now deprecated is Selenium.
I have setup for both in Web-scraping part-2.

I'll definitely take a look. I was having trouble with chrome options a couple weeks ago and read that it might be necessary to uninstall Chrome and move back to an older version. Is that true?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help for script access via webdriver to an open web page in Firefox Clixmaster 1 1,270 Apr-20-2023, 05:27 PM
Last Post: farshid
  How do I get rid of "Chrome is being controlled by automated test software"? jetBlack 2 12,897 Jul-21-2022, 08:31 AM
Last Post: Benjamin112
  Problem with Selenium webdriver Fred 1 2,053 Jan-10-2022, 05:45 PM
Last Post: Larz60+
  How do I iterate over an array and perform actions using selenium chrome webdriver? master 0 2,454 Sep-14-2020, 05:28 AM
Last Post: master
  Which webdriver is required for selenium in Pydroid App Rahatt 1 6,347 Jul-31-2020, 01:39 AM
Last Post: Larz60+
  Log In Button Won't Click - Python Selenium Webdriver samlee916 2 3,839 Jun-07-2020, 04:42 PM
Last Post: samlee916
  Expose chrome extension buttons to Python robertjaxe 2 2,356 May-12-2020, 07:52 PM
Last Post: robertjaxe
  Hyperlink Click is not working in Selenium webdriver rajeev1729 0 2,037 May-02-2020, 11:21 AM
Last Post: rajeev1729
  Selenium/chrome console WiPi 4 5,911 Apr-12-2020, 11:45 AM
Last Post: WiPi
  Selenium webdriver error WiPi 4 12,168 Feb-09-2020, 11:38 AM
Last Post: WiPi

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020