Skip to main content

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
0 answers
4 views

What are the best strategies on how to continously (every x seconds) test a website?

I need to continuously monitor my website's quality, I already have some tests integrated in a CI, but I need to do some checks every x time, what the best strategies on this ? I'm using selenium, ...
Moad Ennagi's user avatar
0 votes
0 answers
32 views

Increase the test performance avoiding the use of mock.create_autospec()

I have created a class called RedisCliWrapper where I have written many methods that call methods of the class redis.Redis. Below I show the class with only the method get_hgetall_value(), which is ...
User051209's user avatar
0 votes
0 answers
17 views

Contract like test without requests/rpc

I work on a (python) project that both depends and is depended on by other projects all developed in house. Pkg A --> Pkg B --> Pkg C Currently the API usage of Pkg B in Pkg A is only checked in ...
Kajsa's user avatar
  • 109
0 votes
0 answers
16 views

Robot framework keyword hierarchy

Hi I have one problem with organizing robot keywords. I have some high level keywords which should be used directly in Test Cases and the I have lower level keywords which should not be used directly ...
martin balaz's user avatar
0 votes
1 answer
33 views

Clicking button with Selenium produces no response

I am trying to automate the clicking of the "Sort by: Top picks for long stays" button at the top of the following page on Booking.com. My code is as follows: sorting_button = WebDriverWait(...
joelleoqiyi's user avatar
0 votes
0 answers
14 views

How to download multiple files in local system using POST API request in python rather than in ascii or binary form data?

I struck in one scenario in which i need to download multiple files in local repository using POST API request in python 3.9.12. I tried below code but not able to resolve the issue. def download(url: ...
Chirag Dhingra's user avatar
0 votes
1 answer
49 views

Can't get text out of Webelement using Selenium

I'm using Python 3.11.5, and I want to extract text from a Webelement with selenium. I use Chromedriver as a driver, and I want to find an element By.CLASS_NAME Here is my code What happens ? When I ...
Rodgoupil's user avatar
0 votes
3 answers
87 views

Selenium and Python - How to click submit button

This is the source code of the webpage ( https://eu.luxpowertek.com/WManage/web/login ) I am trying to login in and click the submit button. <div id="loginFormContainer" style="...
Peter_Brown_USA's user avatar
-1 votes
1 answer
35 views

Unit Test Guidance for Selenium Web Scraping

I'm working through https://www.obeythetestinggoat.com/ and trying to connect the concepts to a program I'm writing. Specifically, I want to write some unit tests, but I'm having trouble thinking of ...
SwabianOrtolan's user avatar
0 votes
2 answers
67 views

How to correctly divide API tests into test cases

I'm practicing API testing and I'm wondering what the correct approach to dividing tests into test cases is. For example, GET gives me a JSON which is a list of items and I want to check a few things ...
eilchner's user avatar
0 votes
1 answer
112 views

Web Scrape and Download Images with Python Xpath Problem

I am trying to download all images that appear in Google image search I am using "Selenium" with Python, Pycharm When I check Chrome developer tool to get Xpath i got the following: //[@id=&...
Kayle Rus's user avatar
0 votes
1 answer
232 views

Python & Selenium: Finding and activating a dropdown list, then selecting a list item

I'm writing a Python program (with Selenium) to automatically download data from a website and then log out, but cannot figure out how to get to the logout menu item, which is in a drop-down list. I'...
BillR's user avatar
  • 1
0 votes
0 answers
117 views

Selenium - Safari Webdriver click not working

I'm taking my first steps in Selenium and I'm having trouble with clicking on elements in Safari: driver.find_element(By.NAME, value="checkbox1").click() doesn't do anything by the looks of ...
eilchner's user avatar
0 votes
0 answers
35 views

Playwright Not Automated

I am trying to automate a task with playwright and realized that the task won't automate unless my mouse is over the open browser. Is this normal or is there some sort of paradigm I'm following? The ...
Nill2000's user avatar
0 votes
1 answer
36 views

Can Appium be used for web testing on a Mac with PyCharm?

I wanted to automate my project, which has three parts: Web testing Ipad app Ios App I have started with the web testing, by following all the steps on appium.io and installed Appium Server, Appium-...
Ankush's user avatar
  • 1
-1 votes
1 answer
35 views

Any tool for UI concurrency process in python?

I would like to have a bunch of users log in to a webpage in parallel, do some miscellaneous work, and log out. Is there a good tool anyone may suggest? I used to use behave BDD to handle the UI ...
user3595231's user avatar
0 votes
1 answer
33 views

Could not able to click the link from the container

enter image description here hi all thanks for reading my question. I tried to automate some of my work. I tried to get the path of Add button using xpath finder I found three links below. I tried to ...
vivek rajagopalan's user avatar
0 votes
0 answers
24 views

Does Playwright offer clickable test suite that anybody can run through a dashboard page?

We need to implement automated E2E testing that would allow anybody on the team to visit the dashboard page and review test run reports and at the same time initiate new tests with a button click. Is ...
Abhishek's user avatar
0 votes
2 answers
1k views

Selenium version 114.0.5735.16 not working

driver = webdriver.Chrome(service=Service(ChromeDriverManager(version='114.0.5735.16').install()), options=options) I have been using this code with selenium version 114.0.5735.16 up until recently ...
CanB's user avatar
  • 1
0 votes
0 answers
316 views

Element Not Interactable Exception Selenium

from selenium import webdriver from selenium.webdriver.support.ui import Select import time from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import ...
Pammvi Group's user avatar
-1 votes
1 answer
437 views

How to create multiple Json files with different values

I want to generate multiple (thousands) json files (to be sent as post body in different requests) with different values but same keys. Can someone please help me how I can do this. If there is any ...
keshav goyal's user avatar
0 votes
0 answers
157 views

Modifying Worker.navigator and Other Attributes in Selenium to Simulate Different OS

I am using Selenium with Python and attempting to trick the browser (chrome) into thinking I'm on a Windows machine when I'm actually running Linux. So far, I have managed to modify the User-Agent to ...
Zefnes's user avatar
  • 1
0 votes
1 answer
74 views

Testing load of a highchart using python and selenium

I am writing a program that must screen some charts, the issue is that I do not know how much time a graph expends to load, it could be seconds or minutes. How can I make an appropriate wait, that ...
pedro's user avatar
  • 1
0 votes
0 answers
99 views

Can't select proper item in dropdown list using Selenium Python

I would like to ask how I could select item in dropdown list within a suffix (EUR). I tried several ways but it selects wrong item, all time same item even if I change xpath. How to resolve it? I have ...
Zymantas's user avatar
0 votes
1 answer
173 views

Py + iOS + FFMPEG(libx264) "height not divisible by 2" & "while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height"

Background : I have automated test suite in which I am trying to record video [for failed tests]on iOS using MacOS with M1 Its working as expected on local and observing failures while running tests ...
Narendra Chandratre's user avatar
0 votes
1 answer
228 views

Python + Appium : ios video recording is creating zero byte videos

Background : I am trying to record video on iOS using MacOS with M1. Problem : I am able to record video but after saving I can see video size is "Zero byte". I have not seen any error so ...
Narendra Chandratre's user avatar
0 votes
1 answer
3k views

Selenium Webdriver got error cannot find msedge binary using google colaboratory and python

I have tried to do testing with URL of the webpage using Selenium. But, I tried with Google Colaboratory for compiler and Python for programming language. I use this code for starting from selenium ...
grace's user avatar
  • 1
0 votes
0 answers
2k views

Robot Framework how to set a variable in an xpath?

Trying to set a variable in an xpath that I can then replace the text in for a dropdown menu. Not sure if there is a better way to do this I have tried "Replace Variables" also from the ...
user55499's user avatar
0 votes
2 answers
3k views

Message element not interactable/click intercepted

[![first page][1]][1] from selenium import webdriver import time from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver....
Carl Carl's user avatar
-1 votes
1 answer
481 views

How to find the find an element by Selenium?

This is the HTML: <div class="fl"> <div class="colMenu"> <h3 class="submenu" style="background-position: 0px -68px;">Cadastro</h3> <...
Matheus's user avatar
2 votes
1 answer
752 views

How to click on the list when it said the list has no attribute "click"?

from selenium import webdriver import time from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from ...
Carl Carl's user avatar
1 vote
0 answers
657 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 ...
VSacudato's user avatar
0 votes
2 answers
58 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 ...
Sameer kumar's user avatar
1 vote
0 answers
4k 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" ...
AvidLearner's user avatar
-1 votes
1 answer
37 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 ...
Narendra Chandratre's user avatar
0 votes
1 answer
1k 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 ...
Narendra Chandratre's user avatar
0 votes
1 answer
2k 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 ...
Narendra Chandratre's user avatar
2 votes
0 answers
3k 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 ...
Christopher McFaul's user avatar
0 votes
1 answer
1k 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, ...
Narendra Chandratre's user avatar
0 votes
0 answers
317 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 ...
Amit Tendulkar's user avatar
0 votes
1 answer
353 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 ...
Narendra Chandratre's user avatar
0 votes
1 answer
600 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....
Anupam Mourya's user avatar
-1 votes
1 answer
11k 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 ...
Narendra Chandratre's user avatar
0 votes
1 answer
266 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 : ...
Narendra Chandratre's user avatar
0 votes
1 answer
114 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 ...
Narendra Chandratre's user avatar
0 votes
1 answer
381 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 ...
Benny's user avatar
  • 1
2 votes
2 answers
1k 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 ...
Samian's user avatar
  • 21
0 votes
1 answer
7k 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="...
John's user avatar
  • 1
1 vote
1 answer
735 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 ...
user2251503's user avatar
-1 votes
1 answer
5k 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 ...
Narendra Chandratre's user avatar

1
2 3 4 5
12