Skip to content

[py] Update test to check it's an integer rather than a value#17114

Merged
AutomatedTester merged 1 commit intotrunkfrom
window_placement
Feb 19, 2026
Merged

[py] Update test to check it's an integer rather than a value#17114
AutomatedTester merged 1 commit intotrunkfrom
window_placement

Conversation

@AutomatedTester
Copy link
Copy Markdown
Member

On 2nd monitors if tests run on the secondary monitor and it is left of the primary monitor x and y will return negative which is allowed. This will also handle tests running on a different desktop which is supported but undefined in the spec

🔗 Related Issues

💥 What does this PR do?

Fixes a test

🔧 Implementation Notes

💡 Additional Considerations

🔄 Types of changes

  • Bug fix (backwards compatible)

On 2nd monitors if tests run on the secondary monitor and it is left of the primary monitor x and y will return negative which is allowed. This will also handle tests running on a different desktop which is supported but undefined in the spec
Copilot AI review requested due to automatic review settings February 19, 2026 14:48
@selenium-ci selenium-ci added the C-py Python Bindings label Feb 19, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a test for window coordinate validation to properly handle multi-monitor setups. The change modifies assertions for x and y coordinates from range checks (>= 0) to type checks (isinstance(..., int)), since window coordinates can be negative when windows are positioned on secondary monitors left of or above the primary monitor.

Changes:

  • Updated test_get_client_windows to validate x and y coordinates are integers rather than non-negative values

@AutomatedTester AutomatedTester merged commit aac9a28 into trunk Feb 19, 2026
46 checks passed
@AutomatedTester AutomatedTester deleted the window_placement branch February 19, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-py Python Bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants