Questions tagged [splinter]

Splinter is an open source tool for testing web applications using Python

Splinter is an open source tool for testing web applications using Python. It lets you automate browser actions, such as visiting URLs and interacting with their items.

329 questions
87
votes
7 answers

Can not click on a Element: ElementClickInterceptedException in Splinter / Selenium

I'm trying to scrape a page, but I sometimes have trouble clicking a link/button. When the web page loads, then the "loadingWhiteBox" will appear first and then disappear after a few seconds (but it will remain in the HTML code) as long as the box…
yellow days
  • 1,053
  • 2
  • 9
  • 11
18
votes
3 answers

Python + Browser with Mac: Error - 'chromedriver' executable needs to be in PATH

I did the following but came across the error: selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home from splinter import…
Jo Ko
  • 7,225
  • 15
  • 62
  • 120
8
votes
1 answer

Changing Proxy Settings without Closing the Driver in Selenium/Splinter

In an older version of Splinter/Selenium this was said not to be possible. This answer a few years later claims it is possible with JavaScript, but this code doens't work for me (I might have just failed to translate it to Python). This answer…
jonbon
  • 1,142
  • 3
  • 12
  • 37
8
votes
2 answers

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings'

I am trying to make simple python program that is opening list of webpages for a user to manually download reports from the site. I don't have any previous experience with preparing exe files.. And I'm just in learning process for python coding. All…
Kusnierewicz
  • 98
  • 1
  • 2
  • 7
8
votes
2 answers

Get href value in Splinter?

pixel
  • 24,905
  • 36
  • 149
  • 251
8
votes
1 answer

Manipulating browser (window) size using Splinter

I am trying to use the Firefox driver for Splinter to test some responsive design. Naturally, this requires me to resize the browser window. I can't find anything at all about browser resizing in the documentation. How can I do this? from splinter…
HansBos
  • 83
  • 1
  • 4
7
votes
4 answers

Python + requests + splinter: What's the fastest/best way to make multiple concurrent 'get' requests?

Currently taking a web scraping class with other students, and we are supposed to make ‘get’ requests to a dummy site, parse it, and visit another site. The problem is, the content of the dummy site is only up for several minutes and disappears,…
Jo Ko
  • 7,225
  • 15
  • 62
  • 120
7
votes
1 answer

Python + Splinter: Error - httplib.BadStatusLine: ''

In my python project, I'm using Splinter (https://splinter.readthedocs.io/en/latest/) to open a browser and attempt visit a site: from splinter import Browser browser = Browser('chrome') browser.visit('http://www.google.com') And the browser…
Jo Ko
  • 7,225
  • 15
  • 62
  • 120
7
votes
1 answer

Python/Splinter: How to find and select an option on a site?

Using Python and Splinter, currently, I need to define exactly what text, option1 to click on when an option is found on a page: from splinter import Browser browser = Browser('chrome') browser.find_option_by_text(option1).first.click() But if…
Jo Ko
  • 7,225
  • 15
  • 62
  • 120
7
votes
2 answers

Selenium Python Headless Webdriver (PhantomJS) Not Working

So I'm having trouble getting selenium to work with a headless driver, specifically PhantomJS. I'm trying to get it to work on an Ubuntu webserver (Ubuntu 14.04.2 LTS). Running the following commands from a python interpreter (Python 2.7.6)…
cdfh
  • 113
  • 1
  • 8
7
votes
2 answers

Splinter or Selenium: Can we get current html page after clicking a button?

I'm trying to crawl the website "http://everydayhealth.com". However, I found that the page will dynamically rendered. So, when I click the button "More", some new news will be shown. However, using splinter to click the button doesn't let…
xjmfel
  • 83
  • 2
  • 5
6
votes
1 answer

Python: How to check off a checkbox with Browser splinter?

Once I add the following item to cart: http://www.supremenewyork.com/shop/accessories/wau85w4km/cxv3ybp1w and go to the check out page: https://www.supremenewyork.com/checkout, there is a terms and conditions checkbox that I’m attempting to check…
Jo Ko
  • 7,225
  • 15
  • 62
  • 120
6
votes
1 answer

Python: How to fill out form all at once with splinter/Browser?

Currently, I’m filling out the form on a site with the following: browser.fill(‘form[firstname]’, ‘Mabel’) browser.fill(‘form[email]’, ‘hi@hi.com’) browser.select(‘form[color]’, ‘yellow’) But the form gets filled out the form sequentially, one…
Dan Me
  • 2,143
  • 4
  • 19
  • 19
6
votes
0 answers

Login with Splinter is not setting document.cookie

I want to login to a https web page using Splinter. However, it seems that cookies are not set when I login. Here is my code: from splinter import Browser import time username = 'blabla' password = 'blabla' with Browser('chrome') as browser: …
Kurt Bourbaki
  • 11,984
  • 6
  • 35
  • 53
6
votes
1 answer

Splinter saves bodiless html

I am using the splinter 0.7.3 module in python 2.7.2 on a Linux platform to scrape a directory listing on a website using the default Firefox browser. This is the snippet of code that iterates through the paginated web listing by clicking the 'Next'…
ChrisGuest
  • 3,398
  • 4
  • 32
  • 53
1
2 3
21 22