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
1k views

Does implicitIwait affect set_page_load_timeout python, selenium, chrome driver

I have a scraper where I have: driver.set_page_load_timeout(30) and driver.implicitly_wait(10) Does implicit wait affect the driver.get() call? I was wondering if my 10 second implicit wait ...
1
vote
1answer
3k views

How do I remove unnecessary console message pop up using selenium with Python?

When I used Chromedriver with selenium in python, I get a lot of console messages that are not useful to me and that don't affect my scraper. How do I not output these? I do not have this issue when I ...
0
votes
1answer
31 views

How to test a class that wraps methods connect to a remote database

I wrote a class creating connection to a remote database, query and do some more actions on that. Which is the best way/ strategy to test that kind of class? I tried to mock third party functions ...
0
votes
1answer
100 views

Test Impact Analysis tool for Python

Is there a Test Impact Analysis (TIA) framework/tool/extension for Python? E.g. an equivalent to JAVAs Test Impact Analysis Plugin for jQAssistant?
0
votes
2answers
3k views

Can't find any element using CSS selector with Selenium on Python

I'm running a script on vodafone.co.uk but I can't find any element using the CSS Selector. browser.get("http://freesim.vodafone.co.uk/") browser.find_element_by_css_selector("#frmNew > div:nth-...
1
vote
1answer
230 views

What Python tool support automation of Sciter based desktop application

I have been using pywinauto for automation of desktop application. This tool was fine until we started using Sciter (see https://sciter.com for more info) on some screens. Pywinauto supports Win32 API,...
1
vote
1answer
7k views

Download pdf in headless chrome and selenium

Script.py profile = {"plugins.plugins_list": [{"enabled": False, "name": "Chrome PDF Viewer"}], # Disable Chrome's PDF Viewer "download.default_directory": source_dir, "download....
0
votes
1answer
283 views

Performance issue - Robot Framework vs Python

I am currently working on the development of a keyword that allows to separate the contents of a text file into 2 parts and create 2 new files containing each of these 2 parts. The file format is ...
1
vote
0answers
276 views

how to plot multiple locations in google.map using flask [closed]

i'm traying to showing multiple points in map from a csv file named 'likibularochelle_test.csv' this file contains 866 points with latitude and longitude but i can't view all of this points just 33 as ...
0
votes
1answer
77 views

Get certain text from website using Selenium

I'm trying to copy a certain string of a website's source code using selenium. This is the page's source code: <body data-gr-c-s-loaded="true">{"url":"https:\/\/shop.website.com\/cart\/...
0
votes
1answer
549 views

Python stops after opening webdriver

from selenium import webdriver driver = webdriver.Chrome("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") driver.get("https://www.google.com/") Hello, I am new to selenium and i have ...
1
vote
1answer
38 views

How do I put validations or assertions in choosing the particular file format?

I am using Robot Framework with Python and Selenium. I need to verify that files have the correct format: specifically that they are image files (e.g.: .jpg, .jpeg, etc). How do I use validations or ...
0
votes
3answers
12k views

ElementNotVisibleException: Message: element not visible

I've seen this error everywhere, but none of the solutions have seemed to work. This is my code: contpayment = driver.find_element_by_class_name('nsg-bg--nike-orange') contpayment.click() Python/...
0
votes
1answer
771 views

Error while executing javascript code in python3 while using selenium

I was trying to remove the ad and other pop-up using selenium after opening the webpage. The pop-up is getting removed but the ad is not getting removed. There is some error in executing javascript ...
1
vote
1answer
5k views

How to open browser with extension already enabled

I get the following code to open chromedriver with extension but this extension is disabled, Is there any way that when chrome is launched, it launch with enabled extension - chrome_options = ...
-1
votes
3answers
5k views

How to Iterate and loop the select Options in dropdown box using Selenium with python?

I want to select an apple and then after "save and Go" then after it should select an orange like the way it should iterate till coconut, at end of the list it should be select 'Save & Hold'. I ...
1
vote
1answer
3k views

How can I access the http headers using python and selenium?

I have a complex javascript-intensive application I wish for which I wish to use python and selenium for automated testing. However, at the same time I need to have access to the http headers for ...
-2
votes
2answers
580 views

How to Handle checkboxes in Selenium with Python?

There are 7 unselected check-boxes available in application. How to select first and last checkboxes and how to select all checkboxes from reverse order using python selenium webdriver?
0
votes
1answer
2k views

How to save an webpage as a xml file using Python and Selenium?

I want to open an xml webpage and after opening the webpage, I want to save the xml content displayed in the webpage as file1.xml file. What I tried: from selenium import webdriver import os from ...
1
vote
2answers
255 views

Selenium screenshots not visible in Robot Framework HTML log file when executing with pabot

I'm having trouble with Selenium screenshots when using pabot to run my tests. They're simply not visible in the HTML log file as seen in the example below (only a dot is appearing) : The HTML log ...
1
vote
1answer
953 views

Selenium Python Bindings - Accessing Submenu Items

I am using Selenium to write unit tests for a website to test scientific software. The backend uses Flask to generate a sidebar where each project is clickable with a dropdown menu. You can only open ...
0
votes
2answers
2k views

How to get Embed link from Openload API after Remote upload? Selenium & Python

im trying to use Openloads API in python, i can do a remote upload like this: ol_url = driver.current_url resp = ol.remote_upload(ol_url) file_id = resp.get('id') Now i have a file uploaded in ...
-1
votes
2answers
1k views

How can I copy and paste part of a split URL using Selenium and Python

I have split URL, and I need to copy and paste a part of that split URL. It gives me an error when I use send_keys method: url_parts[4].send_keys(Keys.CONTROL, 'c') AttributeError: 'str' object has ...
1
vote
3answers
14k views

How to find the last element in a list of the same images on a website using python and selenium?

How do i find the last element in dynamic list with images that all have the same id is there a function that i can use like driver.find_element_by_id('editwebsite').last() in python, I want to ...
0
votes
3answers
357 views

Getting error : NoSuchElementException - Unable to locate element with ID attribute

I am running this code: from selenium import webdriver from `selenium.webdriver.firefox.options` import Options Setup: options = Options() options.add_argument("--headless") def get_results(...
1
vote
2answers
452 views

Advantage of python unit test in selenium

Hi I started building up automation suite using selenium with python. As most tutorial used python unit test framework. I have 5 scenarios of testing login page. Next 50 or more test are going to be ...
0
votes
1answer
323 views

Sometimes Appium clicks on some buttons with a very long delay (on some views)

While testing by appium (using python), it clicks on some buttons with a very long delay on some views in my android app. Method, which I am using: def click_element(self, element, time=wait_time): ...
2
votes
1answer
601 views

Running python selenium test as suite

I have a simple test suite defined as below from unittest import TestLoader, TestSuite, TextTestRunner from TestScripts.LogOn import test_1 from TestScripts.FirstLog import test_2 if __name__ == "...
0
votes
2answers
2k views

Not able to locate the web element with partial xpath and text [duplicate]

I have web element set like below .. <div class="dxnb-headerCollapsed" id="ctl00_LeftPanel_LeftNavigationMenu_nbMenu_GHC1"> <i class="fa fa-handshake-o fa-2x fa-fw" style="">&...
1
vote
3answers
1k views

Python selenium grid parallel execution

How do I run parallel selenium scraper in grid? I wanted to crawl 10 urls , and if I start two Firefox nodes, how do I request the nodes to crawl 5 urls in parallel? I have gone through google, but ...
0
votes
1answer
981 views

pytest selenium output flooded with debug logs

What's Happening I'm writing acceptance tests with selenium-python and pytest on python 2.7. Whenever a test fails the CLI output is flooded with debug output under ---captured log call--- for every ...
0
votes
1answer
56 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
283 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
634 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
692 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
542 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
577 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
618 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
218 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
684 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
486 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
338 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
128 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
860 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/...