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
9 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
-1 votes
0 answers
10 views

Unable to select element from hidden bootstrap dropdown in Selenium (Python)

In my project I have to select an item from the hidden bootstrap drop-down, however, I'm unable to select it. I have tried multiple ways but so far nothing works. I searched on YouTube and it was ...
Ujjwal kumar singh's user avatar
-1 votes
0 answers
10 views

How to fix this error? assert names_requests == names_selenium AssertionError

import time import pandas as pd from bs4 import BeautifulSoup import requests from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import ...
Олег Корнелюк's user avatar
-1 votes
0 answers
12 views

Click on a div that have the same class name than other divs with Selenium Python

greetings! I'm new with Selenium. I would like to make click in a div which has the same class name than other divs. The class name is: answer wHGy3xn8heDaX4AOwXEmk _10bHElnyU5MzSMU2VKM4sp . I tried ...
Gustavo's user avatar
0 votes
1 answer
25 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
7 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
38 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
33 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
32 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
62 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
67 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
111 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
87 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
32 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
35 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
30 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
30 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
23 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
290 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
395 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
138 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
28 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
22 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
160 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
64 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
94 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
146 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
201 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
234 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
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
1 answer
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
2 answers
444 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
2 answers
686 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
211 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
597 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
47 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
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
2 answers
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
2 answers
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
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
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
1 answer
73 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
301 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
344 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
575 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
253 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

1
2 3 4 5
12