Questions tagged [seleniumbase]

This tag is for questions about SeleniumBase, which is a Python framework for Selenium. SeleniumBase tests are run using pytest. https://github.com/seleniumbase/SeleniumBase

This tag is for questions about SeleniumBase, which is a Python framework for Selenium. SeleniumBase tests are run using pytest. https://github.com/seleniumbase/SeleniumBase

36 questions
1
vote
1 answer

Seleniumbase TimeoutException only when using chromium from a script

I have a url login script that was working fine for a few days but then quit, that used the chromium webdriver driver = webdriver.Chrome('/snap/bin/chromium.chromedriver', options=option) I can access the URL using Firefox or Chromium without my…
brad
  • 870
  • 2
  • 13
  • 38
0
votes
3 answers

how to bypass cloudflare checkbox selenium

There are two types of cloudflare protection on the site: the first is at the entrance to the site, and the second is a check mark I'm not a robot that occurs when using different functions of the site. I bypassed the first protection using…
0
votes
1 answer

Why does SeleniumBase close the browser window after it executes a command even when debugging with PDB?

I have this python code which logins to gmail: class GMAIL_LOGIN(): def __init__(self, driver): self.driver=driver self.sl=SeleniumExtended(self.driver) def login_to_gmail(self, email, password): with SB(uc=True) as sb: …
Roy idiot
  • 21
  • 4
0
votes
1 answer

Jenkinsfile Pipeline Script to run Python SeleniumBase tests in Docker

I have been trying for days to try and get my jenkins pipeline to work, I was already able to execute tests via docker on my local using cmd lines. However when trying to do the same steps on jenkins it keeps on failing. Is there any way anyone…
0
votes
0 answers

How to do Page Zoom Out(Control Minus Minus) in SeleniumBase

I am using SeleniumBase for automating one of the UI pages. I want the code to do CONTROL MINUS MINUS so that the page zooms out automatically. I have tried the below methods and its working fine, but after the zoom out my next line of code is…
0
votes
1 answer

How to include implicit wait in seleniumbase?

how could i include implicitly_wait in selenium base? from seleniumbase import SB I'm accessing the google account and I only managed with selenium base
Felipe
  • 195
  • 6
0
votes
0 answers

How to execute bat file after some steps in SelenumBase?

ive got the program that recognizes captcha. And i need in SeleniumBase test do the next steps: download captcha png, save it somewhere in system folder run batch file to process downloaded png result is saved in txt, read the result import…
kGustaw
  • 11
  • 2
0
votes
0 answers

How to upload file in seleniumBase if there is no button and [type="file"] are available

I have below dom elements I have tried choose_file but it is not working in my case, I have also tried the send_keys() method but still not working. Selenium base support the choose_file() method if the dom element is type="file" but in my case…
Krupal Vaghasiya
  • 536
  • 7
  • 21
0
votes
2 answers

I want to retrieve the data from excel using filter criteria if filter matches then data should be iterated in python?

I want to retrieve the data from excel using filter criteria if filter matches then data should be iterated in python. Below is the code working without filter if add filter it is not working can any one please help me out. Can any one provide me…
spectator
  • 329
  • 2
  • 15
0
votes
1 answer

Selenium Python - Login to application from Azure DevOps

MyScript is working totally fine in local with load_dontenv() I am trying to pass username and password to my Python Test Script from Azure DevOps(Library->SecretFile) which is .env content of .env (no filename give for .env .env named as…
Raheem
  • 1
  • 1
0
votes
1 answer

Unable to build Jenkins script

I have selenium/python frame that I would like to push and use with jenkins. However, while trying to build the script I get following error: Started by user Dusan Kovacevic Running as SYSTEM Building in workspace…
DZR
  • 195
  • 1
  • 2
  • 12
0
votes
2 answers

How to click on an element which contains text with seleniumbase?

I have the following very short code where I expect to be able to click on a button which contains the text Click Me: from seleniumbase import BaseCase class MyTestClass(BaseCase): def test_basics(self): url =…
Alex
  • 41,580
  • 88
  • 260
  • 469
0
votes
0 answers

Dosen't work hover over element and click (python selenium)

I'm running into an issue with my Selenium script on Python. Here is the code I am currently working with. The test opens the page and did nothing: there is no hover and click. I'm new with Python and with programming in general, I can't figure out…
0
votes
1 answer

How to get input variable from other function while running pytest for SeleniumBase in Python?

The file I upload to a website changes with each run, and I'd like a way to change it in the test method. Currently, I have it set up like this: functions.py def get_file(): ... file = file_ex1.doc return file def run_test1(): cmd =…
funyuns
  • 229
  • 1
  • 9
0
votes
1 answer