File tree Expand file tree Collapse file tree 6 files changed +23
-10
lines changed Expand file tree Collapse file tree 6 files changed +23
-10
lines changed Original file line number Diff line number Diff line change 6
6
7
7
<img src =" https://seleniumbase.io/cdn/img/sb_recorder_notification.png " title =" SeleniumBase " width =" 380 " >
8
8
9
- (This tutorial assumes that you are using SeleniumBase version `` 2.1.3 `` or newer.)
9
+ (This tutorial assumes that you are using SeleniumBase version `` 2.1.5 `` or newer.)
10
10
11
11
🔴 To make a new recording with Recorder Mode, you can use `` sbase mkrec `` or `` sbase codegen `` ):
12
12
Original file line number Diff line number Diff line change 1
- regex >= 2021.11.2
1
+ regex >= 2021.11.10
2
2
tqdm >= 4.62.3
3
3
docutils == 0.18
4
4
python-dateutil == 2.8.2
@@ -9,12 +9,12 @@ MarkupSafe==2.0.1;python_version>="3.6"
9
9
pyparsing == 2.4.7 ;python_version >= "3.6"
10
10
keyring == 23.2.1 ;python_version >= "3.6"
11
11
pkginfo == 1.7.1 ;python_version >= "3.6"
12
- Jinja2 == 3.0.2 ;python_version >= "3.6"
12
+ Jinja2 == 3.0.3 ;python_version >= "3.6"
13
13
click == 8.0.3 ;python_version >= "3.6"
14
14
zipp == 3.6.0 ;python_version >= "3.6"
15
15
readme-renderer == 30.0
16
16
pymdown-extensions == 9.0 ;python_version >= "3.6"
17
- importlib-metadata == 4.8.1 ;python_version >= "3.6"
17
+ importlib-metadata == 4.8.2 ;python_version >= "3.6"
18
18
bleach == 4.1.0
19
19
jsmin == 3.0.0 ;python_version >= "3.6"
20
20
lunr == 0.6.1 ;python_version >= "3.6"
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ trio-websocket==0.9.2;python_version>="3.7"
40
40
pyopenssl == 21.0.0 ;python_version >= "3.7"
41
41
msedge-selenium-tools == 3.141.3 ;python_version < "3.7"
42
42
more-itertools == 5.0.0 ;python_version < "3.5"
43
- more-itertools == 8.10 .0 ;python_version >= "3.5"
43
+ more-itertools == 8.11 .0 ;python_version >= "3.5"
44
44
cssselect == 1.1.0
45
45
filelock == 3.2.1 ;python_version < "3.6"
46
46
filelock == 3.3.2 ;python_version >= "3.6"
Original file line number Diff line number Diff line change 1
1
# seleniumbase package
2
- __version__ = "2.1.4 "
2
+ __version__ = "2.1.5 "
Original file line number Diff line number Diff line change @@ -157,7 +157,14 @@ def open(self, url):
157
157
if ("http:" ) in c_url or ("https:" ) in c_url or ("file:" ) in c_url :
158
158
if self .get_domain_url (url ) != self .get_domain_url (c_url ):
159
159
self .open_new_window (switch_to = True )
160
- self .driver .get (url )
160
+ try :
161
+ self .driver .get (url )
162
+ except Exception as e :
163
+ if "ERR_CONNECTION_TIMED_OUT" in e .msg :
164
+ self .sleep (0.5 )
165
+ self .driver .get (url )
166
+ else :
167
+ raise Exception (e .msg )
161
168
if settings .WAIT_FOR_RSC_ON_PAGE_LOADS :
162
169
self .wait_for_ready_state_complete ()
163
170
self .__demo_mode_pause_if_active ()
@@ -3125,7 +3132,7 @@ def sleep(self, seconds):
3125
3132
self .__check_scope ()
3126
3133
if not sb_config .time_limit :
3127
3134
time .sleep (seconds )
3128
- elif seconds <= 0.3 :
3135
+ elif seconds < 0.4 :
3129
3136
shared_utils .check_if_time_limit_exceeded ()
3130
3137
time .sleep (seconds )
3131
3138
shared_utils .check_if_time_limit_exceeded ()
@@ -3309,7 +3316,13 @@ def __process_recorded_actions(self):
3309
3316
url2 = url1 [:- 3 ]
3310
3317
elif url2 .endswith ("/" ):
3311
3318
url2 = url2 [:- 1 ]
3312
- if (url1 == url2 ) or (url1 == url2 .replace ("www." , "" )):
3319
+ if (
3320
+ url1 == url2
3321
+ or url1 == url2 .replace ("www." , "" )
3322
+ or (len (url1 ) > 0 and url2 .startswith (url1 )
3323
+ and (int (srt_actions [n ][3 ]) - int (
3324
+ srt_actions [n - 1 ][3 ]) < 6500 ))
3325
+ ):
3313
3326
srt_actions [n ][0 ] = "f_url"
3314
3327
for n in range (len (srt_actions )):
3315
3328
if (
Original file line number Diff line number Diff line change 156
156
'pyopenssl==21.0.0;python_version>="3.7"' ,
157
157
'msedge-selenium-tools==3.141.3;python_version<"3.7"' ,
158
158
'more-itertools==5.0.0;python_version<"3.5"' ,
159
- 'more-itertools==8.10 .0;python_version>="3.5"' ,
159
+ 'more-itertools==8.11 .0;python_version>="3.5"' ,
160
160
"cssselect==1.1.0" ,
161
161
'filelock==3.2.1;python_version<"3.6"' ,
162
162
'filelock==3.3.2;python_version>="3.6"' ,
You can’t perform that action at this time.
0 commit comments