Skip to content

Releases: seleniumbase/SeleniumBase

Set default selector to ``html`` for text-search methods.

21 Nov 21:56
02d1f3c
Compare
Choose a tag to compare

Set default selector to html for text-search methods.
(It's also optional now.)

Now you can do something like this:

self.assert_text("SOME TEXT")

instead of this:

self.assert_text("SOME TEXT", "html")

(Default selector type for selectors: by=By.CSS_SELECTOR)

Methods effected:
assert_text
is_text_visible
wait_for_text
find_text
delayed_assert_text
wait_for_text_visible
assert_text_visible

Due to keeping backwards compatibility, a few older methods remain that do the same thing as newer methods. (Method names were shortened from their previous versions.)

Remote desired capabilities

21 Nov 19:49
493827a
Compare
Choose a tag to compare

Remote desired capabilities

Allow users to specify browser desired capabilities for webdriver when running SeleniumBase tests on a remote SeleniumGrid server such as BrowserStack, Sauce Labs, or TestingBot.

A sample run command may look like this: (When run from the SeleniumBase/examples/ folder):

pytest my_first_test.py --browser=remote --server=username:[email protected] --port=80 --cap_file=capabilities/sample_cap_file_BS.py

A regex parser was built into SeleniumBase to capture all lines from the specified desired capabilities file in the following formats:
'KEY': 'VALUE'
caps['KEY'] = "VALUE"
(Each pair must be on a separate line. You can interchange single and double quotes.)

You can also swap --browser=remote with an actual browser, eg --browser=chrome, which will combine the default SeleniumBase desired capabilities with those that were specified in the capabilities file when using --cap_file=FILE.py. (For example, you'll need default SeleniumBase desired capabilities when using a proxy server, which is not the same as the Selenium Grid server.)

Fix edge case with BaseCase tearDown() method

15 Nov 05:38
162ce06
Compare
Choose a tag to compare

Fix edge case with BaseCase tearDown() method

  • If running tests with --pdb, tests would fail if there were no errors. Now fixed.

Upgrade selenium, pytest, urllib3, and pyotp

06 Nov 05:18
b3f2a4a
Compare
Choose a tag to compare

Upgrade selenium, pytest, urllib3, and pyotp

Upgrade flake8 version and make fixes based on it

05 Nov 05:37
bac1ba5
Compare
Choose a tag to compare

Upgrade flake8 version and make fixes based on it

MasterQA Updates

03 Nov 21:57
a02f54d
Compare
Choose a tag to compare

MasterQA Updates

  • Edit Theme
  • Improve Reliability

MasterQA Upgrade => Add jquery-confirm

02 Nov 23:30
da3c1d0
Compare
Choose a tag to compare

MasterQA Upgrade

Fix issue with proxy server auth in chrome headless mode

30 Oct 16:55
9b98ef6
Compare
Choose a tag to compare

Fix issue with proxy server auth in chrome headless mode.

When using a proxy server that has authentication with Chrome in headless mode, SeleniumBase will now use PyVirtualDisplay (already implemented in https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/base_case.py) rather than using Chrome's built-in headless mode because Chrome doesn't allow extensions when using headless mode. This assumes that the user's system already supports Xvfb (the headless display system) in order to run with PyVirtualDisplay.

See https://bugs.chromium.org/p/chromium/issues/detail?id=706008 , where a member from the Chromium team says: "Headless mode doesn't currently support extensions".

Handle an edge case ("Permission denied") when using a proxy server with auth

30 Oct 07:38
bd0824b
Compare
Choose a tag to compare

Handle an edge case ("Permission denied") when using a proxy server with auth

Update pytest version and replace deprecated method

24 Oct 05:27
979db7b
Compare
Choose a tag to compare

Update pytest version and replace deprecated method