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
2
votes
1 answer

Getting checkbox and text values to questions using bs4 and python

Im trying to scrape the different values (answers to questions) on the following website. 'https://www.unpri.org/organisation/schroders-144205', more specifically the report attached to the website.…
Briyan
  • 23
  • 4
2
votes
0 answers

Stub method when using Flask LiveServerTestCase

We're trying to test a frontend feature that sends a request to a Third Party API when a button is clicked. The click will trigger an internal API call to our Flask application, which will translate this to a request for the ThirdPartyApi. We try to…
2
votes
1 answer

Why does splinter is_text_present() cause intermittent StaleElementReferenceException with Firefox (but not Chrome or phantomjs)?

After upgrading my test environment to the latest versions of selenium, splinter, and Firefox, one of my tests now fails about 80% of the time using Firefox with the following: Traceback (most recent call last): File…
Rob Bednark
  • 25,981
  • 23
  • 80
  • 125
2
votes
2 answers

Web scraping dynamic content with Splinter module

I'm struggling with scraping a table (from steamcommunity) that is dynamically loaded through js. I'm using a combination of python Splinter and headless browser Phantomjs. Here is what I already came up with: from splinter import Browser import…
Ivan
  • 19
  • 1
  • 6
2
votes
1 answer

Python splinter select by tag attribute

I am messing around with some web scraping using Splinter but have this issue. The html basically has loads of li only some of which I am interested in. The ones I am interested in have a bid value. Now, I know for Beautiful Soup I can do tab =…
user6723321
2
votes
3 answers

accept ssl cert with marionette firefox webdrive python splinter

when using python splinter firefox 47 marionette new webdriver, it gives certificate error when access the website i want, i tried to accept ssl certs with browser = Browser('firefox', capabilities = {'marionette': True, 'acceptSslCerts': True}) or…
Amr
  • 2,045
  • 14
  • 17
2
votes
1 answer

How do I control radio button in splinter Python?

i have two options to press the button, i want the second option (which data-value is 2. the code of the page is :
2
votes
0 answers

Questions regarding Splinter for file download

I have written a simple program to mimic logging into a web page, clicking on a few options and the final step is to click on a link to generate a report. Everything seems to be running fine on my PC and the report actually get downloaded into the…
Phil M
  • 93
  • 1
  • 4
2
votes
0 answers

Selenium/splinter taking a browser screenshot not working

I have a script that using splinter to take a screenshot of a certain page. When I run this script on my home computer (ubuntu) it works perfectly fine (takes the screenshot). When I run it on the terminal (debiuan - sudo python) on my server it…
jped
  • 486
  • 6
  • 19
2
votes
2 answers

Scrape spotify web interface

I'm trying to get the number of plays for the top songs from a number of artists on Spotify using python and splinter. If you fill in the username and password below with yours, you should be able to run the code. from splinter import…
Michael K
  • 2,196
  • 6
  • 34
  • 52
2
votes
1 answer

Selenium remote connection refused using Python splinter

I'm trying out splinter for browser testing. Unfortunately it seems like it can't connect to the website. The website opens fine in the browser when done manually. Have I forgotten something? I followed the examples on the splinter documentation…
KMK
  • 1,439
  • 5
  • 21
  • 39
2
votes
1 answer

Splinter: Getting pieces of XPATH text that aren't unique elements

How do I get the text of the first, underline, and last part of the question and store it into a variable, using Splinter? See the HTML at the bottom. I want to make the following variables have the following values: first_part = "Jingle bells,…
actinidia
  • 236
  • 3
  • 17
2
votes
1 answer

how to open two tabs in python splinter

from splinter import Browser with Browser() as browser: browser.visit('https://google.com/') browser.visit('http://www.bing.com/') browser.windows[0] browser.windows[1] How to open two tabs in python splinter and change…
guiboy
  • 101
  • 1
  • 10
2
votes
1 answer

Iterate through a list of links using splinter

Using splinter, how can I iterate through a list of links collected using the find feature and click on each one in sequence? Splinter is finding the links for each element with the name "store" in it using the find…
Strick
  • 21
  • 2
2
votes
0 answers

How to submit a POST payload with splinter browser in python

I am working with pythons splinter browser library, opening a page and passing data for that page to process in the GET string. I have a need to submit a POST payload because the length of the variables in my GET string is at times exceeding the max…