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

learn more… | top users | synonyms

1
vote
2answers
53 views

webdriver.support.select - Select doesn't interact with the element

Hello, I have the following select: <div class="col-xs-12 col-md-6"> <label class="ph_label pointer city"> <span class="l citylbl">City</span> <select class="cities ...
6
votes
1answer
220 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
1answer
96 views

Expecting a popup upon closing the browser

I am expecting a pop-up upon closing the browser. For example, when you are shopping and you have items in cart and in the middle of the checkout process, you wanted to close the tab/browser, at that ...
0
votes
1answer
30 views

Can't get Selenium to select option

I have been trying for a long time to get Selenium to select from this dropdown. Is anyone able to do it? It appears to not be selecting the element whatsoever. Could the fact it requires a reload ...
0
votes
1answer
3k views

TypeError: Error when calling the metaclass bases module.__init__() takes at most 2 arguments (3 given)

I'm new to coding and Python. Not sure where exactly I should be looking to fix this error. from UIMap import tomcat8LoginPage,tomcat8urls,competitors class test_Competitors(unittest): def ...
3
votes
0answers
31 views

How to retrieve httponly cookies with IE selenium driver?

By my research so far, IE selenium webdriver (for IE10 or 11) is not able to retrieve httponly cookies. So code like this can return a full set of cookies including those set to httponly if I am ...
1
vote
0answers
14 views

Include python tests in JS projects

Currently I am responsible for test automation and my company develops applications in Node.js. For web applications, I'm using python and selenium-webdriver. Is there any way to integrate the tests ...
1
vote
0answers
148 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
7 views

How can we iterate URLs in django testcases?

How can we check the status of all the URLs(list of URLs) in django testcases? I tried below code but its not working for me. Please help! def test_url(self): global failed, error_data, ...
0
votes
0answers
29 views

Jenkins build failed with Revision error

I was trying to run Jenkins on a simple Python test. It's my first time, so I followed steps mentioned in this tutorial : Link My Jenkins console output after I triggered build shows that it failed ...
0
votes
0answers
35 views

Could not click the upload button for SafariDriver

There is a upload button on the website as the code below <div class="fileUpload btn btn-primary"> <span>Upload</span> <input class="upload" id="id_file" name="file" ...
0
votes
0answers
263 views

Appium vs Espresso for Android Automated Testing

For last few weeks, I was using appium(python) for android testing but yesterday we have decided to shift to Expresso(Java) for automated testing. There are couple of reasons why we are making this ...
0
votes
0answers
37 views

How to use selenium.captureNetworkTraffic in Python?

I'm interesting in debugging my browser session and I found that it is possible to save http requests with their answers to a file using captureNetworkTraffic in json format. But I can't find any doc ...
0
votes
0answers
87 views

How to enter text in a javascript field using python selenium

I have a address input text field on website which is basically auto populated by ajax request. This is not a drop down field through which you can select some value, neither you can input your own ...
0
votes
0answers
94 views

Selenium Webdriver with Python - Unable to click on “Open” or “Save” or “Save as”

I'm a first time learner of Selenium with Python and I'm facing the below issue: When I click on a Download template link in an application, the OS give the User with the options Open or Save or Save ...
0
votes
0answers
40 views

How can I add Gherkin-based testing to an existing codebase

I am working on converting some hand-written test-scripts to Gherkin-based BDD. My codebase is in Python so I've been looking at behave. However, one challenge I'm facing is defining existing ...
0
votes
0answers
66 views

ElementNotVisibleException on Mac, not Windows

I'm trying to get Webdriver in Python to click a cell in a table, wait for JavaScript to add an element into the cell and then click the element that appears which causes a dropdown to appear. We ...