Questions tagged [python]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
57 views

Seeking Python test frameworks that support structured test results that include “non failure” data

I am having a hard time finding any test frameworks or plugins for frameworks that support saving "validation data strings" as part of the test results. I find this a little surprising so I am hoping ...
0
votes
1answer
343 views

Automation Testing the python code for Autonomous Driving Environment?

I am newbie to testing world. I am currently working on automation testing for a python code in the environment of Autonomous Car Company, is Robot Framework suitable for that? else which is the best ...
0
votes
1answer
724 views

Python/Selenium automation email question

I am completely new to development and automation so I've been playing around with Python and Selenium to fill out simple forms. The form I am using will detect existing email addresses in a Database ...
-1
votes
1answer
1k views

Python Selenium: Unable to find a element when the element already exists

I'm having issues looking for this specific input: <input type="text" class="criteriaFieldInput ui-autocomplete-input" id="KEYWORD" isautosuggest="true" suggestid="1" isolf="false" isphrase="false" ...
0
votes
1answer
2k views

How to save a file by clicking on a link in python-internet explorer-windows [duplicate]

I am having a problem downloading a file using selenium. I had to use selenium to hover over some menus and finally got to the last link which I need to click and reveal 30 zipped files that have a ...
1
vote
1answer
1k views

How to handle mouse over event on submenu in Internet Explorer - Selenium using Python

I am having a problem using selenium and internet explorer 11. I have to automate a website data gathering project where I have to scrape the website for CSV links and download then automatically ...
1
vote
2answers
785 views

How should I handle tests failing prior to a logout and causing other tests to fail?

I have tests which require user to login For such tests I register new user Such tests also have user_logout function (right before assert) The problem: If tests fails somewhere prior to calling ...
1
vote
1answer
577 views

Selenium Webdriver | Python (Tumblr) : Cannot access element ID after posting

I'm trying to create a test case for Tumblr (currently in the process of learning automation) and I'm stuck on trying to access the drafts page. So here's what's happening - after I post an image as ...
1
vote
1answer
601 views

Selenium Python

I'm new to automation testing and decided to use Tumblr as my subject. I'm having trouble making the options appear, see image attached, and don't know what else to use. The code I'm currently trying ...
1
vote
0answers
633 views

How to disable file upload dialog with selenium python?

I'm trying to drag&drop a image to: <input class="aaa" multiple="" name="bbb" style="display:none;" type="file"> with: path=os.getcwd()+r'\\' WebDriverWait(driver, 10).until(EC....
1
vote
0answers
31 views

Technology limitations for web application that scrapes web pages [closed]

I am starting the development of a web platform that provides automated tasks to users, and I have been redirected to this forum after asking the same question in stackoverflow and not being accepted ...
2
votes
1answer
220 views

Test Automation for a website with over 8000 webpages

I have joined a team recently where I have been asked to implement automation testing for a SiteCore based website with over 8000 webpages. The exact functionality that was expected of me was to ...
1
vote
2answers
3k views

Python Selenium, Drop Down

I can't get Python to select "Buy" from the drop down menu: <a href="" role="button" aria-pressed="false" class="td-wb-dropdown__item-content" data-ng-click="tdWbDropdownItemController.select()" ...
-1
votes
3answers
748 views

Behat, Java or Python [closed]

I started in the world of QA about 1 year ago and I started as a QA tester. But for almost 6 months ago, I started with the automation testings. I started with selenium and behat. In my company they ...
1
vote
1answer
124 views

Which conditions have to cover in White box testing?

During white box testing which conditions have to be tested? Consider a post request with integer data. In the function, I will convert that post data (string type) to an integer type. I am using ...
1
vote
1answer
506 views

Unresolved attribute reference 'is_selected'

Bit of a newbie so apologies if I'm missing something obvious. Im trying to loop through some checkboxes to ascertain if they are selected or not and I am getting an unresolved attribute reference ...
2
votes
2answers
356 views

Automated GUI Testing HTML embedded Desktop Application

I have the exact same problem as in this post Automated GUI Testing of MFC/Dynamic HTML embedded Desktop Application This were an old post but maybe there are new solutions available. I have written ...
3
votes
1answer
132 views

Approaches for testing huge data files in text format

My current assignment requires me to test data in a large number of text files ~ 200, usually ranging between 1GB to 20GB. The data is in same schema with coordinates. As of now the approach is to ...
3
votes
2answers
1k views

Getting warning from unit test

I get a warning from this test but I don't know how to handle it. The warning is /usr/lib/python3.5/unittest/case.py:600: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/...
3
votes
2answers
972 views

What to test when “testing” a PDF download?

What should I test if I have created a scenario with Python (bottle + mako) and web front-end to download a PDF file for registered users? I can use selenium to start Firefox, login and trigger the ...
4
votes
2answers
2k views

How do I structure my Python project based on the Page Object Model

I'm currently trying to implement a base for my automated tests based on the page object pattern with Python, Selenium and Behave. I've never really worked in a reasonably big QA project, especially ...
1
vote
2answers
53 views

Better approach to a complex test and report file downloads using python

I've created a very complex script using Python3 and YAML (I keep all the configurations in YAML) that in effect tests all potential file downloads for my environment. Sort of end to end test. Due to ...
1
vote
0answers
432 views

How to extend Selenium2Library by creating new RobotFramework keywords using Selenium WebDriver in Java?

I'm trying to extend the Selenium2Library python library (1.8.0) by implementing new Robot Framework keywords using Selenium WebDriver in Java. In order to do that, I need to be able to retrieve the ...
0
votes
1answer
594 views

Turn on print, stderr, or stdout by tag during test run in Behave Python

So I am trying to implement an @warn tag. The idea is this test doesn't make an assertion and fail, but instead simply prints out a warning. I see this answer here, but that only explains how to do it ...
2
votes
1answer
324 views

feature file in behave(BDD) throws an error

I have create a feature file and step definition file, to execute by test cases using behave (BDD ), but i am facing one error, when i execute the feature file, Please find below to check by code :- ...
2
votes
0answers
755 views

New opened window using selenium doesn't appear in the window handles

I need to open a separate window from a link in my main page and leave the main opened. I am using the following code to do so: self.find_element_by_locator(locator="css==a[href='#/vehicles']")....
2
votes
2answers
14k views

Wait until in Select element using selenium

In my test, I need to wait for text until it will be loaded. I have a list of countries and cities. After I choice country I must wait until cities will be loaded. How I can wait without time.sleep()...
-2
votes
1answer
984 views

Advantages and disadvantages of learning Python Vs learnng Javascript?

I work on automation scripts written in selenium using Java at my current job. I want to expand my skills and learn a scripting language to help with more advanced UI automation. After research I ...
0
votes
2answers
2k views

Issue executing Automation with Selenium/Nosetest set ups

having issue just trying to automate for the first time. I have access to repositories by GIT, where its python folders all use Python 2.7 syntax. I also have Google chrome driver as well(Using ...
4
votes
3answers
338 views

How do you set up selenium tests to run nightly, and where do you store the files?

I understand this question may look subjective, so I will do my best to make this more specific. I have created a suite of Selenium TestCases using Python. I want these tests to run each night, ...
1
vote
1answer
25k views

How to print all elements using python and selenium

I'm trying to make a code to get all the results from a specific search i do on a website. Unfortunately, I haven't been able to print all the results from the classes i need. Here is my code: #...
3
votes
2answers
1k views

How to get start with selenium with python automation

Previously, I had worked in selenium with java automation. I had learnt page object design pattern , core java , selenium webdriver concepts. then do automate the each page has each class file and ...
2
votes
3answers
535 views

My understanding are correct or not in page object pattern

In my previous project, I worked in selenium with java. In that project I following page object pattern. This is my sample code of selenium with java: # Create Page Objects public class HomePage { ...
1
vote
0answers
381 views

Is there a way to enter automate entering credentials in the IWA and SAML popup using only python and selenium

I am trying to create an automation script for a website that supports both IWA and SAML authentication. In case of IWA, whenever I hit the URL using the selenium driver, I get a Authentication ...
6
votes
7answers
309 views

Detecting tests that will never fail

We have a rather big test codebase (~1500 test cases) for a Python/Django application. From time to time we stumble upon existing tests that will never fail: tests with missing assertions tests that ...
5
votes
1answer
8k views

Try Assert Exceptions not failing test in python unittest or better way to loop through failures

Okay I am running Chromedriver test that gathers console logs and then tests an assertion against pythons unittest. class ConsoleLogsTest(unittest.TestCase): @classmethod def setUpClass(cls)...
1
vote
1answer
2k views

Selenium Python Action Move to doesn't work on hover element

Hi I need to click hover element in Selenium Python. I tried to use action chains and then move to element but it didn't work for me. My Selenium code Snippet: element1= self.driver....
1
vote
1answer
567 views

Can you create a Page Object Model framework inside of TestComplete?

I have some experience with using Selenium and Python to set up testing frameworks for web applications using the Page Object pattern. However, my current employer wishes to keep all of our tests ...
0
votes
2answers
887 views

Python selenium - multi window question

I need to open two browser windows at the same time. For example, when browsing a page in a window and if I click on the link present in that window, that link (URL) should open in a new browser ...
1
vote
2answers
1k views

Selenium: how do I download a PDF from a pop-up?

I know this question was probably answered already, but all the answers I found are either old and involve using Selenium APIs that are deprecated, or require a third-party tool, which is overkill for ...
1
vote
2answers
3k views

Validation of a Success or Error Message in Python, using Selenium

Hi I have created a script to validate for the success or error message after filling the form, but it is throwing an assertion error for everything. Please help me out in fixing this error, Here is ...
2
votes
3answers
219 views

Install chromedriver via package instead of executable

Currently I am working on a selenium webdriver project using python. My tests run only in chrome (when the executable file is present in the project). Is there an updated alternative to install the ...
6
votes
4answers
36k views

How to make a selection from a dropdown using Selenium/Python

I've been trying to make a selection from a drop down but cannot seem to figure out how. Here's what I'm trying to get: <div id="quote-status" class="panel panel-default"> <div class="...
1
vote
3answers
4k views

ElementNotVisibleException when selecting dropdown option

I can't make Select() method working in selenium. I have this code: <select class="print-select menuo selectBox" name="data[gimimo-m]" style="display: none;"> <option class="dis-option" ...
0
votes
1answer
513 views

Selenium python test hung up on url in cronjob

My automated tests get hung up on the .get(url) command randomly. I run several test suites everyday against 60+ different urls (each suite) and a handful will fail to get the url after initializing ...
3
votes
2answers
974 views

Functional/Black Box tests automation library on Python

Summary: I have to test embedded software which runs on qemu virtual machine or on real device and can write its output to stdout. So I can check the state of software only by parsing stdout. To ...
5
votes
2answers
2k views

Pros and cons of python unit testing packages

I am starting on my first large scale python project and I want to put the right testing package in place not only to get the job done but also so when hiring people down the road it's easy to find ...
2
votes
3answers
1k views

Robotframework & Selenium2Library & Python - User sign up test problem (emaill address +n generation)

I am beginner in writing automated tests with robotframework(Python and Selenium2Libraries) and I've faced to the issue related to user registration flow. Challenge is: The application under test ...
3
votes
2answers
151 views

A testing tool that determines whether a section of HTML matches a certain style?

This may be a long shot, but suppose I have a requirement that a given section of a web page be bolded. That could be done with <b> or <strong> tags, or even a heading tag assuming that ...
1
vote
2answers
14k views

ROBOT FRAMEWORK: [Error] Parsing ___.robot failed: Data source does not exist

I just setup Robot Framework yesterday. I went to youtube to see some videos on how to set up and I found one that was just uploaded last month. I follow all the steps and I numbered it below. ...