File tree Expand file tree Collapse file tree 6 files changed +28
-8
lines changed Expand file tree Collapse file tree 6 files changed +28
-8
lines changed Original file line number Diff line number Diff line change
1
+ from selenium import webdriver
2
+ from seleniumbase import BaseCase
3
+
4
+
5
+ class OverrideDriverTest (BaseCase ):
6
+
7
+ def get_new_driver (self , * args , ** kwargs ):
8
+ """ This method overrides get_new_driver() from BaseCase. """
9
+ options = webdriver .ChromeOptions ()
10
+ options .add_experimental_option (
11
+ "excludeSwitches" , ["enable-automation" ]
12
+ )
13
+ options .add_experimental_option ("useAutomationExtension" , False )
14
+ if self .headless :
15
+ options .add_argument ("--headless" )
16
+ return webdriver .Chrome (options = options )
17
+
18
+ def test_simple (self ):
19
+ self .open ("https://seleniumbase.io/demo_page" )
20
+ self .assert_text ("Demo Page" , "h1" )
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def test_shadow_dom(self):
30
30
31
31
# Download Python package files from PyPI
32
32
file_name_1 = self .download_tar_file_from_pypi ("sbase" )
33
- file_name_2 = self .download_tar_file_from_pypi ("tensorpy " )
33
+ file_name_2 = self .download_tar_file_from_pypi ("seleniumbase " )
34
34
self .assert_downloaded_file (file_name_1 , browser = True )
35
35
self .assert_downloaded_file (file_name_2 , browser = True )
36
36
@@ -67,7 +67,7 @@ def test_shadow_dom(self):
67
67
self .type (search_input , "sbase" )
68
68
self .assert_text (file_name_1 , file_link )
69
69
print ("\n Download 1: %s" % self .get_text (file_link ))
70
- self .type (search_input , "tensorpy " )
70
+ self .type (search_input , "seleniumbase " )
71
71
self .assert_text (file_name_2 , file_link )
72
72
print (" Download 2: %s" % self .get_text (file_link ))
73
73
self .click (clear_search_icon )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ click==8.0.3;python_version>="3.6"
15
15
zipp == 3.7.0 ;python_version >= "3.7"
16
16
readme-renderer == 32.0
17
17
pymdown-extensions == 9.2 ;python_version >= "3.7"
18
- importlib-metadata == 4.11.0 ;python_version >= "3.7"
18
+ importlib-metadata == 4.11.1 ;python_version >= "3.7"
19
19
bleach == 4.1.0
20
20
jsmin == 3.0.1 ;python_version >= "3.6"
21
21
lunr == 0.6.1 ;python_version >= "3.6"
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ packaging>=21.3;python_version>="3.6"
6
6
setuptools >= 44.1.1 ;python_version < "3.5"
7
7
setuptools >= 50.3.2 ;python_version >= "3.5" and python_version<"3.6"
8
8
setuptools >= 59.6.0 ;python_version >= "3.6" and python_version<"3.7"
9
- setuptools >= 60.8.2 ;python_version >= "3.7"
9
+ setuptools >= 60.9.1 ;python_version >= "3.7"
10
10
setuptools-scm >= 5.0.2 ;python_version < "3.6"
11
11
setuptools-scm >= 6.4.2 ;python_version >= "3.6"
12
12
tomli >= 1.2.3 ;python_version >= "3.6" and python_version<"3.7"
@@ -49,7 +49,7 @@ cssselect==1.1.0
49
49
sortedcontainers == 2.4.0
50
50
filelock == 3.2.1 ;python_version < "3.6"
51
51
filelock == 3.4.1 ;python_version >= "3.6" and python_version<"3.7"
52
- filelock == 3.4.2 ;python_version >= "3.7"
52
+ filelock == 3.5.0 ;python_version >= "3.7"
53
53
fasteners == 0.16 ;python_version < "3.5"
54
54
fasteners == 0.16.3 ;python_version >= "3.5" and python_version<"3.6"
55
55
fasteners == 0.17.3 ;python_version >= "3.6"
Original file line number Diff line number Diff line change 1
1
# seleniumbase package
2
- __version__ = "2.4.13 "
2
+ __version__ = "2.4.14 "
Original file line number Diff line number Diff line change 131
131
'setuptools>=44.1.1;python_version<"3.5"' ,
132
132
'setuptools>=50.3.2;python_version>="3.5" and python_version<"3.6"' ,
133
133
'setuptools>=59.6.0;python_version>="3.6" and python_version<"3.7"' ,
134
- 'setuptools>=60.8.2 ;python_version>="3.7"' ,
134
+ 'setuptools>=60.9.1 ;python_version>="3.7"' ,
135
135
'setuptools-scm>=5.0.2;python_version<"3.6"' ,
136
136
'setuptools-scm>=6.4.2;python_version>="3.6"' ,
137
137
'tomli>=1.2.3;python_version>="3.6" and python_version<"3.7"' ,
174
174
"sortedcontainers==2.4.0" ,
175
175
'filelock==3.2.1;python_version<"3.6"' ,
176
176
'filelock==3.4.1;python_version>="3.6" and python_version<"3.7"' ,
177
- 'filelock==3.4.2 ;python_version>="3.7"' ,
177
+ 'filelock==3.5.0 ;python_version>="3.7"' ,
178
178
'fasteners==0.16;python_version<"3.5"' ,
179
179
'fasteners==0.16.3;python_version>="3.5" and python_version<"3.6"' ,
180
180
'fasteners==0.17.3;python_version>="3.6"' ,
You can’t perform that action at this time.
0 commit comments