Unanswered Questions
99 questions with no upvoted or accepted answers
9
votes
1
answer
486
views
Error: Unable to find window while the window is already displayed in LDTP
I'm using LDTP to write a GUI test case script in python. I'm running the script in a virtual machine by nosetests.
And I get a block with the error of unable to find window X, while window X is ...
4
votes
2
answers
9k
views
Selenium: how to prevent a just-started Chrome window from receiving focus
Using Selenium + chromedriver on Linux, like so;
chrome_options = Options()
driver = webdriver.Chrome('/usr/bin/chromedriver',options=chrome_options)
driver.get('https://www.somewebsite.com')
Chrome ...
3
votes
2
answers
4k
views
Headless Chrome browser won't switch to next window (Selenium + Python)
So I have a test case: When clicking a button a new window is opened. To switch to that new window I use:
window_after = self.driver.window_handles[1]
self.driver.switch_to.window(window_after)
When ...
2
votes
1
answer
770
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 ...
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 ...
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 ...
2
votes
2
answers
3k
views
To work with two different drop downs which are dependent on each other
I have a scenario, which I am finding bit difficult to automate.
The test scenario is :
There are two drop down.
To select the state.
To select the respective cities.
So, I need to write a script to ...
1
vote
0
answers
676
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
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" ...
1
vote
1
answer
717
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 ...
1
vote
0
answers
46
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 ...
1
vote
0
answers
538
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 ...
1
vote
0
answers
312
views
RobotFramework AutoItLibrary.Run test case passing, but no window shown
I have Python 3.7.0, Robot Framework 3.2.2, and AutoItLibrary 1.2.7 installed. I have the following test case to simply run an app I have developed in .NET:
*** Settings ***
Library ...
1
vote
0
answers
496
views
There is a way to identify font type in an Android app? (Python, Appium)
Here is the deal: i'm testing an android app and the client wants us to test font types, sizes and colors.
Using Appium's explorer i'm able to see the objects properties (such us: text, enabled, etc) ...
1
vote
0
answers
60
views
Could I improve my code by opening multiple tabs?
I'm trying to scrape information from an array of links using selenium. Each of them take ~2 seconds to scrape, and it adds up to quite a while.
Is it possible / worth trying to open the links in ...