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
2
votes
1 answer

Inputting a value in a textbox using python seleniumbase

I decided to play around with seleniumbase for a project I am working on, and have been trying to figure out the syntax a bit. On the GitHub site, I found a lot of code, documentation, and examples showing off self.click() and self.type(). I am…
2
votes
1 answer

How to use existing session with Seleniumbase?

I would like seleniumbase to use my existing session when it launches vs starting a clean one. How do I start selenium using an existing session? webdriver: driver = webdriver.Chrome('/snap/bin/chromium.chromedriver', options=option) UPDATE: This…
brad
  • 870
  • 2
  • 13
  • 38
1
vote
1 answer

Seleniumbase checkout bot script isn't running fast enough

I need help getting this checkout bot script written in seleniumbase to run faster. I want it to buy anything new posted to a website where things sell out in seconds, which basically means there is a bot faster than mine because I keep getting…
John
  • 11
  • 3
1
vote
1 answer

Is it possible to chain locators with seleniumbase?

I've tried to transfer my selenium code into seleniumbase however I'm receiving "Message: invalid argument: invalid locator" when I try to chain locators. seleniumbase code: def get_products(self, sb): return…
1
vote
2 answers

cannot find Chrome binary while chromedriver exists

I got an error with seleniumbase on a python script on an amazon aws codebuild service execution. any suggestions to look for? pythonscript ... with SB(headless=True,xvfb=True) as sb: ... python:…
Thomas
  • 33
  • 9
1
vote
1 answer

Cannot make seleniumbase load with an existed chromium profile

Using the code below: try: with SB(headed=True,uc=True,user_data_dir='path/to/Profile 1',browser='chrome') as sb: sb.open('hocalhost:1111') sb.sleep(2) except: print('Some error occur!!') Expecting to…
1
vote
1 answer

Trying to use extension in seleniumbase

I'm trying to use some extensions while automating the browser with seleniumbase. with SB(uc=True,browser='chrome',headed=True,extension_zip='path/to/extension') as sb: sb.set_window_rect(pos_x,pos_y,500,720) …
1
vote
0 answers

Is there any way to get the messages when click to open a side-page with seleniumbase

I'm using seleniumbase to do automated testing. When a web page has a side page, the click function seems to be unable to open the side page in the browser, is there any way to open the side page and perform operations such as clicking and…
1
vote
1 answer

Can`t upload a file to the site using Seleniumbase

I have a script to upload a file to the site, nothing happens when i launch it, I thought the problem was in the compatibility of chromedriver and the browser, but the driver update did not give a result, the script does not issue errors, launching…
1
vote
2 answers

How to call a method imported from another class without Metaclass error?

On python 3.11, I'm trying to use a method from another class, like this: folder name: anyfunctions script name: basicactions.py from seleniumbase import BaseCase class Firstfunction(BaseCase): def login(self): …
1
vote
1 answer

Unable to select reCaptchaV2 checkbox in SeleniumBase

I have a SeleniumBase code like this from seleniumbase import SB from func_timeout import func_set_timeout, FunctionTimedOut def checkbox(): print('- click checkbox') checkbox = 'span#recaptcha-anchor' try: …
Kyomeki EL
  • 19
  • 1
1
vote
1 answer

Python/Selenium - Scrapping Into Excel Sheet

I was hoping to ask a question about the process of scrapping information from a website using selenium/selenium base into an excel sheet. I have been playing around with selenium and selenium base for a few days and I am at the point where I want…
1
vote
1 answer

Can i update BaseCase class in seleniumbase framework?

I'm using selenium base framework for automation. we have inbuilt class as BaseCase. Here, my application has different set of users with desired access.can i create a method for logging to different set of users in BaseCase and call it in test…
1
vote
1 answer

How to check if text is visible with seleniumbase?

Using seleniumbase I just want to check if some text is available. I just want to get a boolean flag, indicating text is available (True) or not (False). The methods provided by seleniumbase seem to throw an exception if the text is not available.…
Alex
  • 41,580
  • 88
  • 260
  • 469
1
vote
1 answer

Is it possible to use pytest-bdd with SeleniumBase?

This is how I would write a SeleniumBase/pytest-bdd test: ddg.feature: Feature: Browse DuckDuckGo Going to DuckDuckGo webpage. Scenario: I can see the title When I go to DuckDuckGo webpage Then Duck is present in the…
Rafutk
  • 196
  • 1
  • 1
  • 15
1
2 3