Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability.

learn more… | top users | synonyms

2
votes
3answers
65 views

Page Object Design: Is there a Python equivalent to Ruby gems “site_prism” or “page_object”?

I'd like to know if there is a framework in Python which supports a clean way to define the Page Object Elements on a Page Object. The site_prism gem does it like so: class Home < SitePrism::Page ...
0
votes
1answer
339 views

Webdriver - Problem with loading profile of Tor Browser Bundle

could you give me any suggestions how to solve the weird problem I experience with webdriver? I like to use webdriver to control the browser from the Tor Browser Bundle (TBB). Controlling the TBB via ...
2
votes
3answers
5k views

How to specify a Firefox profile name when using webdriver + python

I'm using python 2.7.1 and selenium 2.20.0. I have a seperate firefox profile called "selenium" which I want to use when running the webdriver. I managed to do it by specifying the complete path to ...
21
votes
4answers
31k views

What is the correct way to select an <option> using Selenium's Python WebDriver

I would like to select an <option> child of a <select> using the Python WebDriver. I have a reference to the option WebElement I wish to select and have tried select() and click() methods ...
1
vote
0answers
33 views

select_by_value causing odd issue with the DOM

I'm new to Python and Selenium testing so please forgive me if this isn't written right. I've been asked to look at the test that does a few actions on a form. The form has 2 text fields, a drop down, ...
1
vote
2answers
41 views

Robot framework installation

I want to learn robot framework with java and python, but not sure how to use this?. I searched over the net but did not get steps to instal robot framework. I installed only selenium2library file in ...
0
votes
0answers
21 views

Tagging python tests for selective execution

What I am trying to do is : create a tagging system for around 400 tests so I can run them selectively. For example, some tags may be UI_elements, production, staging etc. When a developer makes a ...
0
votes
0answers
38 views

How can I prevent Selenium from dropping my session?

I'm trying to select values from a drop down on a page. There are multiple drop downs and the code seems to have no problem selecting the right drop down when given the correct identifier to choose. ...
0
votes
1answer
40 views

how to handle widows authentication dialog using webdriver in python

I have application which is secured by http authentication. So when I open the url it is looking for user/pass in windows authentication dialog. I wanted handle this dialog to enter user/pass and ...
10
votes
3answers
2k views

What are some tools for fuzz testing?

Fuzz Testing as defined by Wikipedia is: a software testing technique, often automated or semi-automated, that involves providing invalid, unexpected, or random data to the inputs of a computer ...
1
vote
10answers
4k views

Should I learn Python or Java to get into test automation? I am new to programming

Should I learn Python or Java to get into test automation? I'm new to programming. Please share your thoughts or links to any useful information.
1
vote
1answer
74 views

How to start all tests with a clear session after browser crash,

Im using WebDriver and Python to automate a website. I have a suite of tests and sometimes running into the following problem. Test no.1 = Login to home page, navigate to Account page, perform some ...
0
votes
0answers
40 views

Desktop application automation

I need to automate desktop application i.e Bluetooth PTS tool. But can't find any good way to do. I have no exposure to scripting.
0
votes
4answers
292 views

Selenium - advantages and disadvantages of using Python vs C#

We currently have two teams. An automation team and also a web testing team. The automation team currently use Selenium and C# to automate tests on our web applications and legacy systems. As a ...
0
votes
2answers
81 views

Accessing a sub menu within a sub menu using Webdriver with python on IE8

I have been trying for a while to complete this task. For context, I have a link called with text "Main Menu" along the top of the page, that when hovered reveals a list of more links. These links ...
3
votes
2answers
162 views

Python or Ruby , Which has the better support for selenium [closed]

I need to use selenium to do some automating testing, I wonder which Language has better support for selenium, That is once new version selenium released, And I can get the newest version binding ...
3
votes
1answer
78 views

How install both Python32 and Python33 on OS X for testing with tox?

I'm adding Python 3.x support to my open-source project and want to add both Py32 and Py33 test environments to my tox.ini. I already have Py26 and Py27 tox environments that work fine and I just ...
7
votes
1answer
3k views

Is there any full Python webdriver API documentation?

I'm starting out using Selenium 2/Webdriver, been using Selenium IDE for a few weeks, to automate some tests and decided to go with Python. I've been writing some simple tests using some basic ...
0
votes
1answer
127 views

Question about 'self.assertIn' & 'driver.title'

I researched this as much as I could on my own but came to no clear conclusion to my question. I've been teaching myself automation testing via Python + Selenium, I'm as new or n00b as it gets so bare ...
6
votes
5answers
2k views

Manual tester wanting to get into automation

So its been a year since I have been studying python, and just recently I started picking up webdriver. It was a long journey, and I am still pretty noob, but I finally understand how to use it lol. I ...
0
votes
1answer
579 views

Unable to find element in selenium

I'm using the following code: if i[1] == "id_text": inst = driver.find_element_by_id(i[2]) #inst.click() for option in inst.find_elements_by_tag_name('option'): if option.text == ...
1
vote
2answers
185 views

Selenium Webdriver Mobile with Python - AndroidWebdriver4Python installation question

I found this Android webdriver API on github. I already have the Selenium Python client and have written many plain web-based test scripts with it. I have tried asking the git owner, but he has not ...
0
votes
2answers
123 views

Force selenium to use the portable firefox application

I have installed firefox 14 and has firefox portable version 25.0.1 on the machine, where I run tests for a web site. Due to a limitation in the site I'm testing, I cannot run my tests on firefox 14 ...
3
votes
1answer
547 views

Cannot upload a file using requests module in python

After two days of continuous trial, I thought it's better to ask you folks here. I want to upload a file on my desktop to a remote server. For this I am making use of python and its module requests. I ...
0
votes
1answer
122 views

Upload image via ajax form with selenium and Python

I'm trying to get familiar with selenium. I decided to try to work with facebook, and fulfill my profile with selenium, But they use too much Ajax. It's not very complicated to fulfill my hometown ...
4
votes
1answer
576 views

Selenium (RC) hangs when started from Python test

Fairly new to Selenium (but loving it). I'm running a single test in Python on Selenium RC. I've been running it multiple times a day for about 3 weeks. Now when I try to run it, it executes all the ...
0
votes
1answer
3k views

How to retrieve INT value from TEXT box using Selenium/Webdriver Python binding?

Hi guys. I have this code tcost = driver.find_element_by_id("MainContent_txtTotalCost").text total = int(tcost) driver.find_element_by_id("MainContent_txtVisa").send_keys(total/2) ...
3
votes
4answers
6k views

How to select or check multiple checkboxes in Selenium?

I've got this HTML code <input type="checkbox" value="abc" name="arr[]><br> <input type="checkbox" value="abc1" name="arr[]><br> <input type="checkbox" value="abc2" ...
0
votes
0answers
64 views

Fuzzing Python Modules

Is it possible to use a fuzzer, specifically the Peach fuzzing framework to fuzz a module or header file of code. For example, if I wanted to fuzz the os module in python 2.7.6, would I be able to, ...
0
votes
0answers
195 views

Python Selenium bingings ActionChains context_click having no effect for PhantomJS

I am using python selenium bindings for phantomjs. I am trying to simulate a right click and then take a screenshot (showing the context menu). But I am unable to get the right click context menu. ...
0
votes
2answers
186 views

Migrating website content, need to test using Selenium/Python

We are working on a large project which involves LOTS of content being migrated to a new version of a website. I would like to be able to test the content on a page from the old site, with the same ...
4
votes
4answers
7k views

Quicker way to assert that an element does not exist

The goal of my test is to assert that a popup does not appear after certain actions. Previously to test if the popup exist, i have used exception handling. try: ...
16
votes
3answers
1k views

Tools for Python software testing

Similar to Tools for Java software testing, I'm looking for Python-related testing tools/software (as Python is my most frequently-used language).
0
votes
1answer
248 views

check for value if found before adding it to my drop down list?

i have a drop down list that i add items to it,i ask the user to type in brand name and check first if that brand is already found on the drop down list if yes prints a message if no do some actions. ...
0
votes
1answer
32 views

Looping over the array of other function in current function

I need a help to know how can I can iterate a loop over a array which is in another function of the same class. I tried using the following similar code for automation in selenium and I get the ...
0
votes
2answers
323 views

ImportError: No module named 'httplib'

I have recently updated selenium Webdriver to 2.38.1 and I am writing scripts using python. When I run the test case I have I get the following error *Traceback (most recent call last): File ...
1
vote
1answer
244 views

Selenium Python testing: would like to write test results to a file

I'm writing a suite of web tests in Python using Selenium. Ultimately, I want to generate a file with the results, which will then be sent out in an email. I'm using a main Python script to kick off ...
0
votes
1answer
519 views

Selecting xpath using a variable in selenium 2

I am doing a selenium automation where I want to pass the variable into the xpath and select the element. The xpath which I am trying looks like: browser.find_element_by_xpath("//span[contains(.,'SEM ...
0
votes
1answer
134 views

CSS/XPATH selector management using python's dictionary

I have a lot of functional tests in Python. As expected , they use a wide variety of css/xpath selectors . I think I read somewhere that a practice is to have a dictionary where each selector would ...
1
vote
1answer
511 views

How to use databases within the python unittest framework?

I have a bunch of unittests written in python in which messages (text) of any kind is used. Instead of 'hardcoding' the text examples used for the tests I would like to use a database of some kind ...
1
vote
2answers
175 views

What makes Python a good tool in daily testing?

I have seen people commenting that Python is a very handy language in everyday's testing. I wonder what makes it such a good tool, or what testing tasks are easier to achieve with Python than with ...
3
votes
1answer
929 views

How to handle a native OS (Ubuntu) file upload window in selenium webdriver with python?

This is my first time here but I have already posted this question on SO. I keep getting solutions for Windows + Java and not for Linux or python for that matter. I am using selenium and python to ...
4
votes
2answers
406 views

Logging with Selenium Server?

Right now I have several Python Selenium scripts in which I am manually writing results to a text file. Is there a more standardized / centralized way I can log my results without much difficulty? I ...
2
votes
2answers
2k views

How can I dynamically create an xpath string in Python for a webdriver xpath selector?

I am writing a Selenium Webdriver test using python2.7 to use xpath to select a link node set. For each link I need to change the href attribute using driver.execute_script to execute javascript. ...
2
votes
2answers
437 views

Andriod Selenium testing by Python - connecting problem

I'm trying to get the Selenium Android client to run in my emulator: Install SDK Run emulator Install android-server-2.0rc1.apk in the emulator and devices Forward the port by adb forward tcp:8080 ...
3
votes
1answer
3k views

Set attribute of an element using webdriver + python

I am trying to automate uploading an image. The uploader is a Flash object and using AutoIt is not an option. So I am trying to work my way around this with just webdriver. The idea is to 'set' the ...
4
votes
1answer
672 views

Getting nose test runner to execute a test against multiple browsers / configurations?

Surely someone else has run into this problem. I'm trying to figure out how to loop through Firefox, Chrome, and IE in conjunction with nose. Right now I have: "setup.cfg" file that specifies ...
3
votes
2answers
428 views

Load / Performance testing tools or approach for backend

I work on a team which is basically all backend. Functional and unit testing is achieved by python or perl scripts or sometimes bash scripts. But if we need to load or performance test our ...
1
vote
2answers
3k views

How can I access a site protected with basic HTTP authentication using Python, Selenium2, and Chrome Webdriver

I'm using the Python bindings for Selenium2 with the Chrome webdriver. I need to access a site that is protected with basic HTTP authentication. from selenium import webdriver driver = ...
0
votes
1answer
410 views

How to assert values on a page opened by a link on another page?

A link on page 1 opens a new page "receipt page". It contains only text values. I need to assert or verify values on the receipt page to ensure that this is the correct receipt. After executing the ...