Skip to content

Syncing from upstream robotframework/SeleniumLibrary (master)#297

Merged
bt-admin merged 22 commits intobrain-tec:masterfrom
robotframework:master
Apr 8, 2026
Merged

Syncing from upstream robotframework/SeleniumLibrary (master)#297
bt-admin merged 22 commits intobrain-tec:masterfrom
robotframework:master

Conversation

@bt-admin
Copy link
Copy Markdown

@bt-admin bt-admin commented Apr 8, 2026

bt_gitbot

emanlove and others added 22 commits January 19, 2026 11:22
- Fixed a couple incorrectly modified type hints on click button
  and click image
- Added type hints to get webelement(s) keywords
With using the type union syntax we will require atleast Python 3.10.
Also v3.8 and v3.9 have reached end of life.
The `Get Cookies` test started to fail. It was written to expect
just the another and test cookies but was also receiving the far_future
cookie. I'm a bit unsure as to why this wasn't failing sooner. I would
have expected this cookie to also appear. So not sure what was happening
here. Git blame shows this has been unchanged for a while.

I have updated the expected return value from get cookies. I do see some
possible improvements. The previous check allowed for the order to be swapped.
With three that is a bit more complicated. Instead of going into a complex
check for any order I am going to leave this till we see that appear.
Fix flaky Get Cookies test

The previous regex used | to handle any cookie ordering, but the ^ and $ anchors were not wrapping both alternatives, leaving each side only partially anchored and allowing substring matches. For example, the first alternative only required the string to start with test=seleniumlibrary; another=value, meaning a third cookie appended at the end would still pass.

All 3 cookies were always being returned, but the test was silently passing in the past because the browser was consistently returning cookies in an order that accidentally satisfied the faulty regex.

Replaced the regex with a stricter pattern that matches exactly 3 known cookies in any order, with no room for unexpected extras.
Update cookie validation regex in Get Cookies test
…n-and-improve-logging

Fix deprecation warnings and improve logging in tests
@bt-admin bt-admin added the master label Apr 8, 2026
@bt-admin bt-admin merged commit 2638ffb into brain-tec:master Apr 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants