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
21 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
26 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
0 answers
31 views

Pycharm|Python|configaration error|

I'm using selenium-Version: 4.15.0 and webdriver-manager-Version: 4.0.1, few days back my script stopped running and I'm getting this error PermissionError: [Errno 13] Permission denied: 'C:\\Users\\...
shashi's user avatar
  • 1
-1 votes
1 answer
19 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
28 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
14 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
850 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
123 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
188 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
75 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
0 answers
23 views

Course suggestion for BDD Framework using POM and Python (Selenium Automation)

I tried to find an automation course that includes bdd framework with pom and Pyhton but I am not able to find any course regarding can you help me to find a link of such course
Hassan Bari's user avatar
0 votes
0 answers
19 views

Why I can't select desired item using webscrapping Python

I would like to ask what I am doing wrong that I always select wrong item in dropdown list while webscrapping website. I am using Selenium, Pyhton. I need select item which contains (EUR). At this ...
Zymantas's user avatar
0 votes
0 answers
125 views

Webdriver manager causes UnicodeEncodeError: 'charmap' codec can't encode character '\u258e' in position 458: character maps to <undefined>

I am new to Python, Selenium and automated testing. Working through a course, I encounter this error when Webdriver manager is required to update any browsers used (Chrome, Firefox or Edge): ...
Red's user avatar
  • 1
0 votes
1 answer
23 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
63 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
84 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
113 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
152 views

Validate Data completeness

Currently all database data is migrated from SQL/Oracle to snowflake( i.e. Extraction and Load only), basically a replica of Data so that later we can modify the data and Power Bi can fetch from ...
user166013's user avatar
0 votes
2 answers
2k 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
1 answer
1k 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
2k 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
2 answers
359 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
1 vote
2 answers
532 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 votes
1 answer
146 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 ...
VSacudato's user avatar
1 vote
1 answer
436 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
3 answers
33 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
1 answer
3k 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
18 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
2 answers
707 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
2 answers
1k 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
1 answer
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
915 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
1 answer
54 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) ...
karl5252's user avatar
0 votes
0 answers
245 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
311 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
498 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
9k 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
220 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
101 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
275 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
867 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
6k 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
0 votes
1 answer
593 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
4k 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
0 votes
1 answer
934 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 ...
Narendra Chandratre's user avatar
0 votes
1 answer
2k 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 ...
Synthezx's user avatar
0 votes
0 answers
21 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 ...
AfonsoSalgadoSousa's user avatar
0 votes
1 answer
304 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 ...
Mornon's user avatar
  • 1,107
2 votes
4 answers
7k 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 ...
Mugen's user avatar
  • 410
-2 votes
1 answer
74 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 ?
Swapnil Kale's user avatar

1
2 3 4 5
11