2022 Developer Survey is open! Take survey.

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
3 answers
45 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 ...
user avatar
  • 390
-2 votes
1 answer
33 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 ?
user avatar
-1 votes
0 answers
18 views

How to handle dynamic dropdown in python selenium

1.2(0)-ARCHIVED 6.12.9-build.32676(1)...
user avatar
1 vote
1 answer
91 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 ...
user avatar
  • 11
0 votes
0 answers
14 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.
user avatar
0 votes
0 answers
26 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 ...
user avatar
0 votes
1 answer
67 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 = "...
user avatar
0 votes
1 answer
63 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 ...
user avatar
  • 123
0 votes
1 answer
83 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 ...
user avatar
  • 1
1 vote
2 answers
225 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 ...
user avatar
0 votes
2 answers
68 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
214 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=&...
user avatar
0 votes
0 answers
83 views

Driver instance of web_driver is not working in python

I am facing an issue in retrieving a browser driver issue as logs says collecting ... collected 1 item ====== WebDriver manager ====== Could not get version for google-chrome with the any command: reg ...
user avatar
0 votes
1 answer
709 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 ...
user avatar
0 votes
2 answers
36 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="...
user avatar
  • 21
0 votes
1 answer
371 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 ...
user avatar
1 vote
1 answer
43 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 ...
user avatar
  • 11
0 votes
0 answers
74 views

Selenium - NoSuchElementException - Unable to locate element

for i in href2[420:423]: driver.get(i) time.sleep(3) #scroll down actions = ActionChains(driver) for _ in range(4): actions.send_keys(Keys.PAGE_DOWN)...
user avatar
0 votes
0 answers
58 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 ...
user avatar
-1 votes
1 answer
399 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=&...
user avatar
  • 1
0 votes
1 answer
47 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 ...
user avatar
  • 109
0 votes
1 answer
22 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 ...
user avatar
0 votes
1 answer
17 views

10th element in rating is not present so what should i do to print dash(-) in that place tto matchup the data frame

import pandas as pd import selenium from selenium import webdriver from selenium.common.exceptions import NoSuchElementException import pandas as pd import time driver = webdriver.Chrome(r"C:\...
user avatar
1 vote
0 answers
35 views

Delineating unit tests and integration tests in Testing Library for React and unittest

This question is related to Testing Library for React and unittest for Python. I'd like like to have a single file that contains unit tests and integration tests for a component, and be able to target ...
user avatar
  • 129
1 vote
2 answers
47 views

Selenium (Python) is having issues finding and interacting with a button that has formmethod="get" in it

I am attempting to click a delete button but Selenium does not locate it even though a save button next to it is completely intractable. The only difference is the delete button has this in the html &...
user avatar
2 votes
1 answer
546 views

Differentiating between two items with the same class name using selenium

As a learning project, I am trying to use selenium webdriver with python 3 to collect my shopping for the week from sainsburys website. At the moment, the script will loop through a bunch of URLs for ...
user avatar
  • 21
1 vote
2 answers
474 views

Selenium is not finding button even though it has a Class Name and XPath

I am attempting to click a save button but Selenium (with Python) is having issues. I keep getting the error, "Message: no such element: Unable to locate element" Here is the HTML <input ...
user avatar
0 votes
1 answer
50 views

Android Function testing report generate using Appium + Python

I am currently working on a mobile application with appium with python. There are a lot of options for every file selection in that. Currently checking if processing all the types of files are ...
user avatar
1 vote
1 answer
90 views

Cant access elements in authentication popup that says ```sign in with google```

Trying selenium for a webpage which only have google authentication. When the Join button is clicked, a popup window comes up which only have a button named sign uo with google. As i am new to ...
user avatar
-1 votes
1 answer
76 views

cannot click on link Python Selenium

I am trying to add a confirmation link on selenium but selenium is not able to click on that link its on yopmail with name janemartin90452 It doesn't click on the confirmation link Name "Activate ...
user avatar
  • 1
0 votes
3 answers
105 views

How to get text of <span> based on the <p>?

How do I find the element with text "Jessica" based on "3000" displaying in the web page using xpath? I'm getting ...not a valid xpath error. <div> <span><b>...
user avatar
0 votes
1 answer
202 views

selenium select checkboxes between checkboxes : Python

This is the how my HTML looks like: <tr> <td class = 'text-bar'> id </td> <td> <input type="checkbox" size = "20" value= 'Yes' id =...
user avatar
  • 101
0 votes
0 answers
32 views

How can I use a for loop in this code in python

I want to run my code 10 times in 10 new tabs. Kindly help me on how can I use a for loop and open in 10 different tabs. code; import time from selenium import webdriver from selenium.webdriver....
user avatar
0 votes
1 answer
44 views

How can I handle browser alert

I do not understand how to click allow button. import time from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--disable-notifications") ...
user avatar
1 vote
3 answers
760 views

Cant fill out Username and Password field using Selenium

I'm trying to fill out a Username and Password field on a website. The id changes every time, so I cant find the elements by using the id. So I tried by using XPath and class name, but none of them ...
user avatar
  • 13
0 votes
0 answers
105 views

Is it possible to automate electron applications with RobotFramework Browser library?

I am currently using selenium and python to launch and access elements from an electron application. I've used RobotFramework Browser (rfbrowser) library to automate angular webpages previously and I ...
user avatar
0 votes
1 answer
510 views

AttributeError: module 'selenium.webdriver.common.keys' has no attribute 'RETURN'

When I run my script it gives me this error: Traceback (most recent call last): File "C:\Development\Python_Project\SDETpythonProject\SDET_Package\my_firstProject.py", line 18, in <...
user avatar
  • 1
0 votes
2 answers
1k views

Finding sibling of found element using selenium

I've got a field with a date in it that's identified by a code that's shown in the div previous to it. <div class="fcode"> <div class="fcode_n">(123)</div> ...
user avatar
1 vote
0 answers
131 views

How do I handle Chrome Autofill using Selenium Python?

I encountered an issue using the chrome autofill option. There is any way to handle the options list? (please see the image) What I've done: Load my Chrome Profile Launch Chrome with my loaded ...
user avatar
  • 11
0 votes
1 answer
2k views

To click on an element which contains class and title in selenium python

I want to click on an element which contains class and title in selenium python. A webpage contains certain folders with unique name. I want to click on a folder by specifying its name or title. Below ...
user avatar
1 vote
2 answers
242 views

New to automation testing of APIs with Pycharm and Pytest

We are moving all manual testers to automation. I am very familiar with 'concepts' but really need a beginners step into automation for new API Service and endpoints. The developer is coding a new ...
user avatar
0 votes
1 answer
30 views

how to get the values of "term_from" and "term_to" using selenium

How can i get the value of term_from and term_to from this html table.
user avatar
  • 1
1 vote
2 answers
341 views

Send_keys in selenium doesn't activate the submit button but manual entering does

I'm struggling with a phone number field that I fill using send_keys function in selenium. Actually, the submit button is supposed to be enabled after filling out the phone number, but it doesn't ...
user avatar
0 votes
2 answers
193 views

I have a dynamic xpath which is based on 4 values, if I am using OR condition the xpath looks huge, any other way to handle this?

_OPTION_1 = "Average" _OPTION_2 = "M" _OPTION_3 = "Casual" _OPTION_4 = "D" _WIDTH_VALUE_XPATH = f"//mat-option/span[contains(text(),'{...
user avatar
-3 votes
1 answer
94 views

How can i repeat this script many times [closed]

driver.find_element_by_class_name("submit").click() time.sleep(2.5) driver.find_element_by_xpath("//input[@value='Continue >>']").click() time.sleep(2.5) driver....
user avatar
0 votes
1 answer
34 views

How to handle the exact position of runtime creating webelement in selenium python

I've been writing a couple of tests using selenium for my website. However, I've not found a way to test multiselect dropdown with checkboxes that is filled by V-autocomplete(vuetifyjs) component . As ...
user avatar
  • 1
-2 votes
1 answer
319 views

Selenium Webdriver: HOW TO CLICK IN A BUTTON WITHIN A CLASS OVER OTHER CLASS?

I've been trying to click in a button and haven't success. Want to acess line 130 Começa a new game It has two class="responsive-lg" and the I Want is the second. I need help to overcame ...
user avatar
1 vote
1 answer
881 views

Selenium closing the brower alone after finishing all the function [closed]

I'm pretty new in programming so I might be an easy question but I don't understand why the browsers opened by Selenium closes at the end of the code : def login(Email, Password): Driver = ...
user avatar
  • 13
3 votes
1 answer
117 views

How to scroll an element to the center of the screen

driver.get( "http://www.uitestingplayground.com/scrollbars") time.sleep(10) driver.execute_script( "arguments[0].scrollIntoView()", driver.find_element_by_id("...
user avatar
  • 33
0 votes
1 answer
2k views

how to click on the dropdown list items using selenium python without select tag?

I need to click on the dropdown list of items that are hidden and only the list visible once we click on the particular search box. HTML TAG: <div class="main-search_suggestions suggestions-...
user avatar
  • 3

1
2 3 4 5
11