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

Splinter not working in PayPal

I want to enter the email and the password directly with Splinter in Python. The problem is that it appears this message: AttributeError: 'ElementList' object has no attribute 'fill' The code I made is the…
Pol MP
  • 23
  • 3
0
votes
1 answer

Render Desktop-view instead of Mobile-view in PhantomJS using Splinter

I'm using Splinter (https://splinter.readthedocs.org) with PhantomJS driver, as useragent I use: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.3) Gecko/2008092814 (Debian-3.0.1-1) In ghostdriver log file I can observe that the user agent is…
martin
  • 53
  • 1
  • 1
  • 4
0
votes
1 answer

Splinter childnodes div

I'm using Splinter (https://splinter.readthedocs.org/en/latest/) for web testing, I successfully fetch the div element by using browser.find_by_css(), the div contains child nodes. I'm using phantomjs driver. How can I access the child nodes of the…
martin
  • 53
  • 1
  • 1
  • 4
0
votes
1 answer

Failing to open HTTPS pages in PhantomJS using Splinter

I'm trying to use PhantomJS to write a scraper but even the example in the documentation of morph.io is not working. I guess the problem is "https", I tested it with http and it is working. Can you please give me a solution? I tested it using…
user3375448
  • 695
  • 6
  • 14
0
votes
0 answers

Django/Selenium : request contains Anonymous user after successfully login

I have a set of fixtures: @pytest.fixture def user() # A Django user @pytest.fixture def browser() # Splinter browser @pytest.fixture def logged_user(live_server, browser, user) browser.visit(url) browser.fill('username',…
Salvatore Avanzo
  • 2,656
  • 1
  • 21
  • 30
0
votes
1 answer

Error implementing phantomJS in splinter

I've tried implementing the following, passing along the path of phantomJS.exe installed in the system. from splinter import Browser from selenium import webdriver driver =…
Kai
  • 45
  • 1
  • 8
0
votes
1 answer

Python Splinter Library ImportError: cannot import name Browser

I'm trying to use the Splinter library in python. When I use from splinter import Browser in the code it gives me: File "D:\Users\User\Desktop\splinter.py", line 1, in ImportError: cannot import name Browser I am trying to run the file from my…
Sam
  • 1,052
  • 4
  • 13
  • 33
0
votes
1 answer

Find input submit element by multiple class values in Splinter?

I would like to find such element: I'm using such method but it finds nothing: browser.find_by_css('.button .button-line .navy').first().click()
pixel
  • 24,905
  • 36
  • 149
  • 251
0
votes
1 answer

In python: splinter, how can I .click() on un-endorsed linkedin skills?

Previous research I haveve read the splinter help docs and searched Stack Overflow and spent about 4 hours trying various ideas, mainly playing with dir() in combination with firefox's "inspect element" feature. No success. Question I am struggling…
hello_there_andy
  • 2,039
  • 2
  • 21
  • 51
0
votes
1 answer

How to automatically handle alerts with Splinter in Python

I am using the Python wrapper for Selenium, Splinter, to make purchases on an online store. Randomly, the browser throws an UnexpectedAlertPresentException. I don't know where in my process this error will be thrown, and it seems ridiculous to check…
sardine
  • 13
  • 5
0
votes
1 answer

Executing javascript in Splinter

I have a python script that uses Splinter to interact with a webpage. There's a form on the page that I want to submit, but there's no button element to submit it. Instead, there's a piece of javascript that runs when the button is clicked. I tried…
Joshin
  • 299
  • 1
  • 3
  • 14
0
votes
1 answer

python: how to go "back" a page with splinter

I need to iteratively submit data to a page then re-visit the page: from splinter import Browser with Browser() as browser: # Visit URL url = "http://tefam.biochem.vt.edu/tefam/search_seq_form.php" …
hello_there_andy
  • 2,039
  • 2
  • 21
  • 51
0
votes
1 answer

Using Pillow's Image.save() function throws an AttributeError when trying to download an image from a page using Splinter

I am trying to download an image from a webpage using a combination of the Splinter browser library (with ChromeDriver) and the Pillow library. I am using an instance of a Chrome browser to login to the website and navigate to the page with the…
0
votes
1 answer

Pass an e-mail into a HTTP login

I'm trying to make a login using only HTTP request. Like: http://user:password@mywebsite.com And everything works fine. But there is this one username that is an e-mail. So, how should I pass them in HTTP? I'm…
0
votes
1 answer

Work with hidden select elemens in splinter (and selenium)

I have a problem with splinter. I try to execute this code: # -*- coding: utf-8 -*- from splinter import Browser browser =…
Dmitry M
  • 3
  • 2