Skip to content

Commit c59d235

Browse files
committed
Add set_window_rect(x, y, width, height)
1 parent 6c18c90 commit c59d235

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

help_docs/method_summary.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ self.execute_async_script(script, timeout=None)
138138

139139
self.safe_execute_script(script)
140140

141+
self.set_window_rect(x, y, width, height)
142+
141143
self.set_window_size(width, height)
142144

143145
self.maximize_window()

seleniumbase/fixtures/base_case.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,6 +1473,10 @@ def safe_execute_script(self, script):
14731473
self.activate_jquery() # It's a good thing we can define it here
14741474
self.execute_script(script)
14751475

1476+
def set_window_rect(self, x, y, width, height):
1477+
self.driver.set_window_rect(x, y, width, height)
1478+
self.__demo_mode_pause_if_active()
1479+
14761480
def set_window_size(self, width, height):
14771481
self.driver.set_window_size(width, height)
14781482
self.__demo_mode_pause_if_active()

0 commit comments

Comments
 (0)