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
0 answers

Selenium Browser Issue

So I have been using splinter (wrapper around selenium) to automate a web browser. Recently it stopped working. It opens a browser window but doesn't go to the website. My code: import…
Ryan
  • 259
  • 3
  • 10
0
votes
1 answer

Splinter find_by_css() not working as expected

I tried this in the browser and it works fine: ('button[data-item-id="1054079703"]')[0].click() When I try it with Splinter: browser.find_by_css('button[data-item-id="1054079703"]') returns a Splinter…
Morgan Allen
  • 3,291
  • 8
  • 62
  • 86
0
votes
1 answer

Using Splinter to click on multiple buttons on one page

On one webpage, there exist a series of buttons with the same name that I need to select. I can collect these buttons through a command like buttons = browser.find_by_name("value") but once I select one of these buttons the rest of the elements are…
Jim
  • 101
  • 3
  • 9
0
votes
1 answer

python splinter comparing unicode elementlist with string

I want to get all the anchor tag text from an iframe named "ListFirst". I'm trying to iterate text and comparing each with the string 'AGENT-WIN3E64 ' that I want to click.But the comparison I made here e['text'] == u'AGENT-WIN3E64 ' becomes false…
0
votes
1 answer

Python splinter cant click on element by css on page

I am trying to automate a booking in process on a travel site using splinter and having trouble clicking on a css element on the page. This is my code import splinter import time secret_deals_email = { 'user[email]': 'adf@sad.com' } browser =…
gomri15
  • 1
  • 1
0
votes
0 answers

Popup warning control using python splinter

When I use the splinter python, popup warning appear. I want to click the button there but i can not control it (with the splinter). did any one know how to use it?
0
votes
3 answers

Open a link in new tab with Splinter

I'm using Splinter to test Webpages. Is there a way to easily open a Link in a new Tab (something like link.middle_click())?
testiii123
  • 11
  • 3
0
votes
1 answer

ElementNotVisibleException only in virtual display

I have a script that needs to interact with a webpage via selenium. I need to use some kind of virtual display to keep the browser from showing up. The script as a whole works great until I introduce Xvfb into the mix. When I do that I get an…
Sheena
  • 15,590
  • 14
  • 75
  • 113
0
votes
2 answers

Integration Tests using Lettuce & Salad Fail After Upgrading Django to 1.8.9

I recently upgraded Django from 1.6.11 to 1.8.9, and all of our integration tests are failing. All of these tests passed in 1.16.11. Some examples of errors I get are: And I should see "Announcements" somewhere in the page within 5 seconds …
Julie Qiu
  • 59
  • 5
0
votes
2 answers

Preventing duplication of code; parametrize a single function, or create two separate functions?

I'm in the process of combing through and simplifying a codebase for a python project. The nature of the selenium-wrapping library that I'm using called Splinter is that I find myself writing a lot of code with minor differences, maybe in the…
Garrett
  • 1
  • 1
0
votes
2 answers

Finding button with Splinter

There is a sign in button but im not able to find its name on the source page. The url of the web page is http://pict.ethdigitalcampus.com/PICT/ Which method of splinter could i use here?
The_Coder
  • 321
  • 5
  • 18
0
votes
1 answer

How can we send message by pressing enter in a chat window using splinter?

In a chat window ( watsapp, facebook etc. ) message can be sent by pressing "Enter", How can we achieve that in splinter. I tried submitting the form using browser.execute_script() but its reloading the full page instead. Also tried…
0
votes
2 answers

Why is 'splinter' module not found after creating python executable?

I created a small program in python using a few imports: splinter, Tkinter, webbrwoser, urllib, and re The program has a GUI (through tkinter), and everything works fine when I run it through the command line. However, when I try to create an…
Jona
  • 1,023
  • 2
  • 15
  • 39
0
votes
1 answer

Python 3.x Editing text areas and copying from fields and not open browser

Had a look Here No specific answers to my question I am using splinter and here's what I put into the shell and what returned. >>> from splinter.browser import Browser >>> browser = Browser() >>>…
Luke
  • 439
  • 1
  • 12
  • 26
0
votes
1 answer

KeyError: 'browser' with Splinter and Behaving automated testing

I followed the instructions here: http://shon.github.io/2014/06/19/ui_testing_and_bdd.html about setting up Splinter with Behaving to run automated tests. I'm able to run a test successfully, but at the end of the test, it throws an error saying: …
coreyg
  • 428
  • 8
  • 18