@@ -179,6 +179,8 @@ self.switch_to_window(window, timeout=None)
179
179
180
180
self .switch_to_default_window()
181
181
182
+ self .switch_to_newest_window()
183
+
182
184
self .get_new_driver(browser = None , headless = None , locale_code = None ,
183
185
servername = None , port = None , proxy = None , agent = None ,
184
186
switch_to = True , cap_file = None , cap_string = None ,
@@ -485,15 +487,22 @@ self.generate_traffic_chain(pages, loops=1)
485
487
self .get_element(selector, by = By.CSS_SELECTOR , timeout = None )
486
488
# Duplicates: self.wait_for_element_present(selector, by=By.CSS_SELECTOR, timeout=None)
487
489
490
+ self .assert_element_present(selector, by = By.CSS_SELECTOR , timeout = None )
491
+
492
+ self .assert_elements_present(* args, ** kwargs)
493
+
494
+ # ###########
495
+
488
496
self .find_element(selector, by = By.CSS_SELECTOR , timeout = None )
489
497
# Duplicates: self.wait_for_element(selector, by=By.CSS_SELECTOR, timeout=None)
490
498
# self.wait_for_element_visible(selector, by=By.CSS_SELECTOR, timeout=None)
491
499
492
- self .assert_element_present(selector, by = By.CSS_SELECTOR , timeout = None )
493
-
494
500
self .assert_element(selector, by = By.CSS_SELECTOR , timeout = None )
495
501
# Duplicates: self.assert_element_visible(selector, by=By.CSS_SELECTOR, timeout=None)
496
502
503
+ self .assert_elements(* args, ** kwargs)
504
+ # Duplicates: self.assert_elements_visible(*args, **kwargs)
505
+
497
506
# ###########
498
507
499
508
self .find_text(text, selector = " html" , by = By.CSS_SELECTOR , timeout = None )
@@ -579,6 +588,20 @@ self.fail(msg=None) # Inherited from "unittest"
579
588
self ._print(TEXT ) # Calls Python's print() / Allows for translations
580
589
```
581
590
582
- ---
591
+ --------
592
+
593
+ <h2 >🔵 Examples</h2 >
594
+
595
+ ✅ Test Folder: [ SeleniumBase/examples] ( https://github.com/seleniumbase/SeleniumBase/tree/master/examples )
583
596
584
- Example Test: [ my_first_test.py] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py )
597
+ * [ my_first_test.py] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py )
598
+ * [ parameterized_test.py] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/parameterized_test.py )
599
+ * [ test_deferred_asserts.py] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_deferred_asserts.py )
600
+ * [ test_demo_site.py] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_demo_site.py )
601
+ * [ test_error_page.py] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_error_page.py )
602
+ * [ test_login.py] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_login.py )
603
+ * [ test_markers.py] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_markers.py )
604
+ * [ test_swag_labs.py] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_swag_labs.py )
605
+ * [ test_suite.py] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_suite.py )
606
+ * [ test_tinymce.py] ( https://github.com/seleniumbase/SeleniumBase/blob/master/examples/test_tinymce.py )
607
+ * And many more...
0 commit comments