File tree Expand file tree Collapse file tree 6 files changed +30
-8
lines changed
seleniumbase/console_scripts Expand file tree Collapse file tree 6 files changed +30
-8
lines changed Original file line number Diff line number Diff line change
1
+ import pytest
2
+
3
+
4
+ @pytest .mark .offline
5
+ def test_request_fixture (request ):
6
+ sb = request .getfixturevalue ('sb' )
7
+ sb .open ("data:text/html,<p>Hello<br><input></p>" )
8
+ sb .assert_element ("html > body" )
9
+ sb .assert_text ("Hello" , "body p" )
10
+ sb .type ("input" , "Goodbye" )
11
+ sb .click ("body p" )
12
+ sb .tearDown ()
Original file line number Diff line number Diff line change
1
+ def test_request_sb_fixture (request ):
2
+ sb = request .getfixturevalue ('sb' )
3
+ sb .open ("https://seleniumbase.io/demo_page" )
4
+ sb .assert_text ("SeleniumBase" , "#myForm h2" )
5
+ sb .assert_element ("input#myTextInput" )
6
+ sb .type ("#myTextarea" , "This is me" )
7
+ sb .click ("#myButton" )
8
+ sb .tearDown ()
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ def test_file_upload_button(self):
11
11
"?filename=tryjsref_fileupload_get" )
12
12
self .ad_block ()
13
13
self .switch_to_frame ('iframeResult' )
14
- self . add_css_style (
15
- 'input[type="file"]{zoom: 1.5;-moz-transform: scale(1.5);}' )
14
+ zoom_in = 'input[type="file"]{zoom: 1.5;-moz-transform: scale(1.5);}'
15
+ self . add_css_style ( zoom_in )
16
16
self .highlight ('input[type="file"]' )
17
17
dir_name = os .path .dirname (os .path .abspath (__file__ ))
18
- self . choose_file (
19
- 'input[type="file"]' , dir_name + "/example_logs/screenshot.png" )
18
+ file_path = dir_name + "/example_logs/screenshot.png"
19
+ self . choose_file ( 'input[type="file"]' , file_path )
20
20
self .demo_mode = True # Adds highlighting to the assert statement
21
21
self .assert_element ('input[type="file"]' )
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ parameterized==0.7.4
36
36
soupsieve == 1.9.6 ;python_version < "3.5"
37
37
soupsieve == 2.0.1 ;python_version >= "3.5"
38
38
beautifulsoup4 == 4.9.1
39
- cryptography == 3.0
39
+ cryptography == 3.0 ;python_version < "3.6"
40
+ cryptography == 3.1 ;python_version >= "3.6"
40
41
pyopenssl == 19.1.0
41
42
prompt-toolkit == 1.0.18 ;python_version < "3.6.1"
42
43
prompt-toolkit == 3.0.6 ;python_version >= "3.6.1"
Original file line number Diff line number Diff line change 43
43
LOCAL_PATH = "/usr/local/bin/" # On Mac and Linux systems
44
44
DEFAULT_CHROMEDRIVER_VERSION = "2.44"
45
45
DEFAULT_GECKODRIVER_VERSION = "v0.27.0"
46
- DEFAULT_EDGEDRIVER_VERSION = "84 .0.522.61 "
46
+ DEFAULT_EDGEDRIVER_VERSION = "85 .0.564.41 "
47
47
DEFAULT_OPERADRIVER_VERSION = "v.84.0.4147.89"
48
48
49
49
Original file line number Diff line number Diff line change 54
54
55
55
setup (
56
56
name = 'seleniumbase' ,
57
- version = '1.48.1 ' ,
57
+ version = '1.48.2 ' ,
58
58
description = 'Web Automation and Test Framework - https://seleniumbase.io' ,
59
59
long_description = long_description ,
60
60
long_description_content_type = 'text/markdown' ,
128
128
'soupsieve==1.9.6;python_version<"3.5"' ,
129
129
'soupsieve==2.0.1;python_version>="3.5"' ,
130
130
'beautifulsoup4==4.9.1' ,
131
- 'cryptography==3.0' ,
131
+ 'cryptography==3.0;python_version<"3.6"' ,
132
+ 'cryptography==3.1;python_version>="3.6"' ,
132
133
'pyopenssl==19.1.0' ,
133
134
'prompt-toolkit==1.0.18;python_version<"3.6.1"' ,
134
135
'prompt-toolkit==3.0.6;python_version>="3.6.1"' ,
You can’t perform that action at this time.
0 commit comments