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
1 answer
15 views

Page Object Model for large projects with Behave?

I have an end-to-end test project done in pure Selenium implementing Page Object Model. The thing is, I'm dabbling in Behave to add specificity to test cases based on business requirements. I would ...
0 votes
1 answer
25 views

How can I run test cases implementing Pytest, Playwright and Gherkin Features with Python?

I'm doing an end-to-end test automation project in which I simply login to a specific page. To do this, I use Python 3.10, Pytest, Playwright and Allure to report. In my implementation file of my ...
-1 votes
1 answer
20 views

So how would I combine two dictionaries into one expression? [closed]

I'd want to combine two dictionaries into one. x = {'a': 1, 'b': 2} y = {'b': 3, 'c': 4} z = merge(x, y) z {'a': 1, 'b': 3, 'c': 4} When a key k appears in both dictionaries, just the value y[k] ...
0 votes
3 answers
18 views

Python Behave test causing rhel 7 server to hang

On executing set of behave tests on linux server manually the behave tests are getting stuck at some random behave test and rest other behaves are not executed. There is no particular bdd which is ...
-1 votes
0 answers
4 views

What platform can I use to perform a machine-learning-based string matching process with a human-in-the-loop (HIL) aspect using python?

I am looking for a recommendation on a hosted machine-learning process that provides an easy human-in-the-loop solution. Our primary goal is to match strings from transactional data against our SSOT (...
  • 1
1 vote
0 answers
35 views

downloading file using python

I want to examine a button that leads to downloading a file. the HTML contains: <a class="calibre-push-button " href="/calibre/get/EPUB/123/calibre" role="button" ...
  • 111
-1 votes
1 answer
7 views

"“photos.db” couldn’t be copied because you don’t have permission to access while Integrating python osxphotos lib

Problem : Background : I am trying to access internal storage and photos using python from iOS real device or simulators & occur failure in a process because you don’t have permission to access ...
0 votes
2 answers
34 views

fatal error: 'libheif/heif.h' file not found occur while Installing via pip on mac

Problem : fatal error: 'libheif/heif.h' file not found occur while Installing via pip on mac I was trying to install specific module using pip, In order to integrate & use in my automation ...
0 votes
1 answer
88 views

How to get link from web element without actual download using Selenium Python?

I have multiple link on webpage with button. I wanted to validate and ensure all link are working. Do not want to download each file and wait till gets finished. After successful download to check ...
1 vote
0 answers
298 views

Selenium, Python: Write, click next page loop

I'm trying to learn selenium with python and have been trying to automate: Search of the next button on the page. Click on this button. Save each HTML page from the next page in a file. Repeat until ...
0 votes
1 answer
218 views

element.text (similar to getText() from java) is not working and continuously returning empty string as value using python & selenium

Problem : element.text is not working and continuously returning empty even when I can see a real value Solutions I have tried : Tried finding element using different locator strategy: like xpath, ...
0 votes
0 answers
11 views

Does Test Complete (SmartBear) allows to write unnitest classes in script steps?

My query is if I can write scripts inside TestComplete using unittest? (Don`t get me wrong. Not import unittest/pytest test suite. WRITE tests in Scripts 'directory') As per TC (TestComplete) ...
0 votes
0 answers
55 views

How to test RobotFramework test library using mock objects

I have created a RobotFramework test library in Python. It internally utilizes paramiko and paramiko-expect packages to connect to various *nix hosts and execute Unix commands. I have been reading ...
0 votes
0 answers
107 views

Selenium python vs microsoft sharepoint login with certificate

I'm using Python with Selenium on Mac. I need to access SharePoint website. I tested it on Chrome and on Edge. I have an issue with this pop-up to select a certificate and have no idea how to click to ...
0 votes
1 answer
62 views

Python + Selenium : Edge extension automation test failing continuously as driver.get(url) is not working

System : Python Behave Selenium Edge browser Target : Extension Problem : Edge extension automation test is failing continuously. There are multiple observations : Page gets loaded with enter ...
0 votes
1 answer
123 views

how to select input ID using span, I'm facing bug in selecting ID dropdown

I am new to Selenium, and in learning phase, would be appreciable for help: my Code: from datetime import date from datetime import datetime from selenium import webdriver from selenium.webdriver....
-1 votes
1 answer
2k views

Error "groovy.lang.MissingPropertyException: No such property: simctl for class: groovy.lang.Binding" observed while executing from Jenkins piepline

Team, I am facing below error while executing Jenkins pipeline : groovy.lang.MissingPropertyException: No such property: simctl for class: groovy.lang.Binding I have checked and confirmed, The cmd ...
0 votes
1 answer
100 views

Appium + iOS automation : Error "Could not write domain com.apple.keyboard.preferences; exiting"

Team, Everything was working and suddenly I observed all the tests started failing :( with following error : Could not write domain com.apple.keyboard.preferences; exiting What all I have tried : ...
0 votes
1 answer
57 views

Appium+Python: Screenshot for failed step in iOS :HOOK-ERROR in after_step: TypeError: after_step() missing 1 required positional argument: 'scenario'

I am trying to capture screenshot on iOS device when any of my test gets failed. Problem statement : How to get behave scenario inside the after_step() method Observed error : HOOK-ERROR in ...
0 votes
1 answer
80 views

Convert Python or C# selenium test file to .side file?

I am trying to build additional functionality into Selenium IDE and would like the ability to import and run tests created outside of Selenium IDE using the browser extension. Is there any sort of ...
  • 1
0 votes
0 answers
44 views

How can I click this checkbox agreeing to electronic signatures in a Docusign form with Python using Selenium? ::before and ::after problem?

This is my first post so forgive me if I use the wrong terminology. I'm using Python 3.10 Selenium 3.141.0 on a PC running Windows 10. I'm working on a script to automate signing Docusign documents ...
2 votes
2 answers
153 views

Not able to match ChromeDriver version with chrome version

So at my current job I’m at a pinch, we can’t just download executable jars and use them. We have to request to download whatever we want . So the problem is , our chrome gets auto updated where as we ...
  • 21
0 votes
1 answer
2k views

How to find and click a span class element using the text of a sibling span class

<div class="answersContainer"> <div class="answer fadeIn" style="visibility: visible;"> <span class="answerBox"> <a name="...
  • 1
0 votes
1 answer
311 views

How to handle download pop-up in Firefox, while downloading XML using Selenium Webdriver?

I am trying to download an XML file from Firefox and Webdriver, but I can't handle the download pop-up. This issue comes only for downloading the XML files. When clicking the button, I need the file ...
0 votes
0 answers
24 views

Switch browser is not switching the browser visually

I opened 5 browsers in my script as five different users and I have to switch between users and perform things. When I use switch browser, the script is running in background but I am unable to see it ...
  • 1
-1 votes
1 answer
1k views

Python + VS Code: ModuleNotFoundError: No module named ' ' occur

Facing issue with error : ModuleNotFoundError: No module named 'selenium' Basically, Error is not specific to module 'selenium'. Facing this issue in VS Code even when, I have selenium installed for ...
0 votes
1 answer
466 views

macOS Monterey12.0+Python+Selenium+Chrome: WebDriverException: Message: 'chromedriver' executable needs to be in PATH & “chromedriver” can’t be opened

I am facing following multiple issues with Python + Selenium + Chrome : WebDriverException: Message: 'chromedriver' executable needs to be in PATH. “chromedriver” can’t be opened because Apple ...
0 votes
1 answer
505 views

How to get specific data in a div with Selenium?

Let's say this website has frequently changed data (stores). I am also only interested in certain stores from my list. How do I get all the data of the first store from the top and from my list? I was ...
0 votes
0 answers
28 views

How to get "Related Test Cases" over testlink API?

I'm trying to get the related test case(s) located on the filed "Related" over Testlink API using Python. However I've retrieved all the API method names and none of them showed something ...
0 votes
0 answers
14 views

Working on Notebook but not working on cmd

I am using Selenium to help me collect data from a web page. This page has two dropdowns, which change a list of links to PDFs which I then download. My code runs fine in a notebook but does not work ...
0 votes
1 answer
158 views

Fixed storage paths for Selenium screenshots or logs possible?

Details: Currently I use Python 3.10 and Selenium. I used here in the area of functional testing here in particular UI Testing accordingly also Selenium screenshots. But since I work on different ...
  • 1,207
0 votes
4 answers
3k views

Is there a way to record a video of my Selenium automation with Python?

I'd like to have video recordings of the Selenium automation at work. And then delete the recording when the tests pass. This way whenever the tests fail we can quickly replay the video to see what ...
  • 390
-2 votes
1 answer
49 views

Which can be better in automation framework designing for an organisation, Python or Java? [closed]

I want to start automation testing with selenium webdriver(need to design the framework for the same), so which would be better to start with Java or Python ?
1 vote
1 answer
698 views

Automated tests are failing when ran together but pass when are ran individually

I'm using Python+pytest and Helium to create my tests. Each time I run a test individually, it works 100% of times. However, if I try to run more than 5-6 tests together, some are failing, some are ...
  • 11
0 votes
0 answers
20 views

Access drop down with class in RobotFramework

I am using RobotFramework. How can I access the drop down with a class? Because I don't have the list name.
0 votes
0 answers
474 views

send_keys() command don't work on python selenium

import time from tkinter.tix import ButtonBox from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys from ...
0 votes
1 answer
741 views

Locate xpath of an element visible only on hover

I am doing automation on the following :- The comments you see(<!---->) , changes when I hover over the INFY(in green on the left) (See one of the comment changes to <span class = "...
0 votes
1 answer
364 views

What application types are supported by winappdriver

I have application which has extension as .msc, I tried it with python I also ran winappdriver before executing this script. I have seen demo codes on some blogs which uses .exe file extension for the ...
  • 123
0 votes
1 answer
745 views

Explicit wait doesn't work with selenium python

I am learning selenum with python and the explicit wait method doesn't work to click on the 'accept cookies' button. Otherwise, the time.sleep method work and I would like to understant why the ...
  • 1
1 vote
2 answers
2k views

Get a specific text value from an HTML table using python and selenium

CROSS-POSTED here: https://stackoverflow.com/questions/71003815/get-a-specific-text-value-from-an-html-table-using-python-and-selenium This website (https://egov.uscis.gov/processing-times/) shows the ...
0 votes
2 answers
200 views

How to execute multiple selenium java test-scripts with different parameter at one time?

Is there any solutions for executing multiple selenium webdriver java test-scripts having different parameters at one time and get results. If parameter is URLs, then we can test multiple Urls on one ...
user avatar
0 votes
1 answer
1k views

Selenium - cannot click on radio button

I have tried all the possibilities but am unable to click the radio button Yes or No. It would be great if I get some help. I have observed that Need to take this attribute (<span radiogroup class=&...
0 votes
1 answer
4k views

How to select li element using Selenium in Python

I am trying to automate something on shopify, and depending on what the variable (lets say x) is, I want it to go into that list. For example, if x=2, then from that ul/li(list), how can I make it ...
0 votes
2 answers
661 views

How to grab other data inside class with Selenium

<svg aria-label="Unlike" class="_8-yf5 " color="#ed4956" fill="#ed4956" height="24" role="img" viewBox="0 0 48 48" width="...
  • 21
0 votes
1 answer
1k views

Selenium + Python: how can we close all opened tabs except the first tab/main tab?

This is my code, ''' import time from selenium.webdriver.common.by import By from selenium.webdriver import ActionChains from selenium.webdriver.support import expected_conditions as EC ...
1 vote
1 answer
271 views

How can I find all values between strong brackets from a javascript website using Selenium?

I'm trying to scrape a javascript website. The website contains a list of products and I need to find out a specific product through this list. All product names are between strong brackets from an ...
  • 11
0 votes
0 answers
318 views

Test execution gets stopped after an assertion error using Pytest

For the data driven testing, if there are 10 data sets, and the assertion fails for 3rd data set, then the rest of the 7 data sets are not considered for execution and the program gets stopped at that ...
-1 votes
1 answer
893 views

Selenium - IndexError: list index out of range

 Customer Order Function <input type="button" name="" accesskey="D" value="D" onclick="go('/tips/SO1R1301.do')" class=&...
  • 1
0 votes
1 answer
224 views

Python Selinium Javascript button download file

Website: https://myir.ird.govt.nz/eservices/home/?link=RWTEXREG I'm attempting to download this file. It looks like the request is handled server side so there isn't any download link per se. I've ...
  • 109
0 votes
1 answer
301 views

How would I retrieve links of every page, and through those links, I want to retrieve links of the products

next_btn = driver.find_element_by_xpath("//a[@class='ge-49M']") for i in next_btn: driver.get(i) lnks = driver.find_elements_by_xpath("//a[@class='_2UzuFa']") for z in ...

1
2 3 4 5
11