All Questions
273
questions
-1
votes
3
answers
338
views
test chrome issue within chromedriver [duplicate]
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
driver_path = r"C:\Users\hp\Desktop\Udemy\chromedriver.exe" # Replace with your correct path
# Create a ...
0
votes
0
answers
41
views
webdriver error while working with selenium with python
I am getting this error
C:\Users\Admin\PycharmProjects\Testing\.venv\Scripts\python.exe C:\Users\Admin\PycharmProjects\Testing\firsttest.py
Traceback (most recent call last):
File "C:\Users\...
0
votes
0
answers
32
views
Hypothesis + selenium + pytest issue
Not executing according to the set maximum number of times
and Generate the same data repeatedly
import pytest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from ...
0
votes
1
answer
41
views
Unable to get a handle on the auto-suggestion dropdown in an angular based website using python selenium
I am trying to automate work-flow using python-selenium in a website made using angular. However, I am not able to automate auto-suggestion dropdown.
When i input the suggestion key using send-keys ...
6
votes
2
answers
92
views
How can I run code for Python testcase in VS Code?
When I ran this code in VS Code, it gives msg that "no testcase ran in 0.2s". So, How can I ran testcases in VS Code.
import pytest
from selenium import webdriver
from time import sleep
from ...
0
votes
1
answer
122
views
Python Selenium ActionChains not working with canvas
I am trying to test a canvas element with selenium in python: in the canvas there's a custom video editor in which I can drag elements. I'm using Selenium ActionChains, but it doesn't seem to work in ...
0
votes
1
answer
48
views
How to get the verify in selenium Python
I am writing a test for cancel a data request at the page: https://school.moodledemo.net/admin/tool/dataprivacy/mydatarequests.php
There is a pop-up when cancel a data request
My code to catch this:
...
0
votes
0
answers
35
views
Detection of the presence or absence of an element with selenium
my problem is as follows; First of all, I pull comments from a page, when these comments are long, there is a "see more" button and I press this button. However, the problem starts here, not ...
-1
votes
1
answer
95
views
Chrome browser closes immediately after being launched with selenium
Hello im trying to run the following code in python.
from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService
from webdriver_manager.chrome import ...
0
votes
0
answers
212
views
Activate a Chrome Extension with a "Browser Action" in Selenium with python
For test purposes I need to use a Chrome extension inside my Selenium tests.
In the picture you just see the extensions button (the puzzle piece) and under that (clicking) there is the extension I ...
0
votes
2
answers
548
views
Setting project with selenium and pytest
Recently I have started a new project with Selenium and Pytest and I'm not sure what is the best way to set up the driver and the general structure of the project.
I have set up the driver inside ...
0
votes
0
answers
263
views
Python Selenium metamask automation error
I'm trying to automate metamask (crypto wallet extension) login on a website and I get an error when trying to find the password input element. I have managed to kind of come up with a fix but I don't ...
1
vote
2
answers
222
views
Browser closes automatically after script execution
This following code runs without any errors, but it automatically closes Google Chrome after the script completes.
import time
from selenium import webdriver
from selenium.webdriver.chrome.service ...
0
votes
0
answers
181
views
How to verify a dynamic text using Regex in Robotframework?
I want to validate below text in Robot framework, wherein the text in bold is changing dynamically and I just need to verify the Format of those bold text not the content. Can some one help?
"We ...
0
votes
1
answer
101
views
Selenium cannot interact with an accordion-item
I've been trying to get an autmation test running for a site, I can successfully log in and land at the dashboard. However when trying to click on a module from a sidebar menu, selenium is not able to ...