Questions tagged [python]

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

1
vote
1answer
331 views

Selenium python drop down menu select

I need to select an element from a drop-down menu. The dropdown menu has two value and I need to select the second "sponsor.com" <select tabindex="1" name="userDomain" onchange="javascript:...
1
vote
1answer
42 views

Interacting witrh elements in the new link using Selenium(Python)

I am writing a Python script for interacting with the Spotify Webplayer. Initially I have to login by entering the credentials. After I click the login button and I get redirected to the webplayer ...
1
vote
1answer
118 views

How to download in headless mode with selenium?

I have a test running to download files from a website, the files download okay without the headless argument chrome_options.add_argument('--headless') but as soon as I add this line nothing downloads,...
1
vote
1answer
268 views

find_elements_by_xpath issue!

I'm trying to complete the basic python Selenium demo (https://selenium-python.readthedocs.io/getting-started.html) but I'm attempting to do that same procedure on https://www.ncbi.nlm.nih.gov/. ...
1
vote
1answer
272 views

How can I prompt for input using Selenium/Webdriver and use the result?

i know this has been asked before but the last time it has been answered was about a year and a half ago main point is i want to from selenium import webdriver from selenium.webdriver.common.keys ...
1
vote
1answer
6k 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....
1
vote
2answers
221 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
786 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 ...
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
1answer
554 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
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
vote
1answer
19k 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: #...
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
3answers
3k 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" ...
1
vote
1answer
3k views

Iterate Clicking via nested loops? - Python and Selenium

Just a heads up, this is my first post on here so if I violate any of the posting rules please let me know! Currently, I am attempting to : Find WebElements(Hyperlinks) in a Dashboard Table to ...
1
vote
1answer
509 views

Type Error when using DDT for Selenium

I am learning Selenium with python, so please excuse my amateur questions, I am trying to run a simple Data driven test where selenium will enter a few different names on the Name field. The Page ...
1
vote
1answer
254 views

selecting from drop down list using selenium3.0.2 and python3.5.1

This is my first question in OS and I would describe it in details with my best effort. Selenium3.0.2 firefox 45.6.0 geckodriver 0.13.0 python 3.5.1 (with Anaconda 2.4.1 (64bit)) What I want to ...
1
vote
1answer
1k views

Syntax error with a if / else statement (Python / Selenium)

I'my trying to apply an if / else statement in Python to know if I have an element or not and if it is the case, click on it. But I don't know why I have a syntax error and I don't see where I have ...
1
vote
1answer
3k views

Button not clickable with Selenium

I'm having a problem with a Cancel button which can be clicked manually, but fails when I try to get Selenium to click on it. The button is being identified, but when I assert if the button is ...
1
vote
4answers
2k views

How to log out in facebook using python selenium?

I want to know how to log out in facebook using python selenium. here's my code: from selenium import webdriver from selenium.webdriver.common.keys import Keys import time #from selenium folder ...
1
vote
1answer
663 views

What's the difference between using Python vs. Ruby for Browser Automation testing? [closed]

I want to automate test cases on web browsers and I love the concept of Python's Salad (mix of Lettuce (BDD) and Splinter (browser automation)). But I've heard that Salad might not be the most stable,...
1
vote
1answer
938 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 ...
1
vote
1answer
1k views

Reporting for Python tests built using PyUnit

I am looking for a good reporting tool for Python tests-specifically the one which supports Python 3.0+, with Selenium, built using the default PyUnit framework. So far I have come across only one ...
1
vote
1answer
50 views

Data type/value of argument checking [closed]

Consider ClassA that has a method that takes an argument, say a string. This method then passes the argument to ClassB to do something with it. Should ClassA be assuring that the argument is valid (...
1
vote
1answer
2k views

Selenium webdriver not recognizing div element

I have found several questions related to this one particular travel website MakeMyTrip, so I tried to automating it. I was successful in selecting the primary details and getting on the Flight ...
1
vote
1answer
6k 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 setup(...
1
vote
1answer
2k views

How to handle widows authentication dialog using webdriver in python

I have an 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 ...
1
vote
3answers
1k 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.
1
vote
2answers
2k 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 ...
1
vote
1answer
1k 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. ...
1
vote
1answer
2k views

How can I convince Squish to recognise the menu bar on Mac OS X?

I'm currently recording some python test scripts for a Mac OS X application using Squish for Qt, version 4.0.2. The menu bar of the AUT works fine if interacted with manually, but for some reason ...
1
vote
1answer
41 views

Selenium can't click href

I want to click on a href(all of the delete ones), but can't <a href="#delete"><img height="16px" width="16px" src="/images/icons/trash_16.gif"></a> I've tired (both delete and #...
1
vote
2answers
41 views

Strange drop down automation problem - multiple select

I've tried for days to figure this one out. I have a selector that I can't figure out. It seems to be a regular select statement with multiple options but when clicking one option directly it ...
1
vote
0answers
75 views

Appium 1.10.0 + Android : Unable to accept permission alert

Team, I am facing issues to accept the permission on Android using Appium. I have tried below options: capabilities.SetCapability("autoAcceptAlerts", true); driver.switch_to_alert() driver....
1
vote
0answers
215 views

Attach Existing browser session in SeleniumLibrary RobotFramework

I have an LDAP alert box that pops up as soon as the browser is opened. I am Using Robotframework with the seleniumlibrary for my automation scripts.The issue is that the execution of the script ...
1
vote
0answers
35 views

Testing of console tools

From my previous experience, I am used to write tests for either unit testing or integration/deployment testing. Now I am facing the challenge to write automated tests for a console tool using a ...
1
vote
2answers
90 views

Python Selenium unable to login by clicking on Button inside a form

website:https://www.etoro.com/login <button automation-id="login-sts-btn-sign-in" ng-click="loginCtrl.login(loginForm)" class="e-btn-big wide dark pointer">Sign in</button> I am trying ...
1
vote
1answer
571 views

Python Selenium: Unable to locate element

I'd like to download the primary parcel layer from this website. First step is to click the "Add/Remove Item" button, but I am having trouble locating it. For this button, the Inspect Element window ...
1
vote
1answer
160 views

How do you automate an OTP using python selenium?

I have a scenario where I need to perform a login, but the problem is its based on OPT (I mean once I enter a phone number to that number I receive an OTP That OTP is the password)
1
vote
2answers
187 views

To work with two different drop downs which are dependent on each other

I have a scenario in which i am finding bit difficult to automate . The test scenario is : There are two drop down . 1.To select the state. 2.To select the respective cities. So i need to write a ...
1
vote
1answer
292 views

Selenium Python - Unable to find an element, get stale element exception when using element locator

Scenario: 1.Login to a website using script and navigate to the Home page. 2. On the home page, click a link and navigate to a new page. 3. Then navigate back to the home page using the top navigation ...
1
vote
1answer
215 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
0answers
243 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 ...
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 ...
1
vote
0answers
584 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 ...
1
vote
0answers
393 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 ...
1
vote
0answers
345 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 ...
1
vote
2answers
2k 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 ...
1
vote
0answers
305 views

Unable to run zap scan script using Zap python client

I have written a script to scan URL using zap python API, I am using Ubuntu 14.04, Python 2.7 and Zap 2.5 version. I have installed zap by following these instructions. When I try to run, I'm getting ...