File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -280,18 +280,23 @@ def test_viewport_screenshot
280
280
assert !File . exist? ( file . path )
281
281
end
282
282
283
+ # Requires --relaxed-security server flag
283
284
def test_start_performance_record_and_stop
284
- @@driver . start_performance_record ( timeout : 300_000 , profile_name : 'Activity Monitor' )
285
+ file_path = './test_start_performance_record_and_stop.zip'
286
+ File . delete file_path if File . exist? file_path
285
287
286
- sleep 3
288
+ @@driver . start_performance_record ( timeout : 300_000 , profile_name : 'Time Profiler' )
287
289
290
+ @@driver . find_element ( :accessibility_id , 'Buttons' ) . click
291
+ sleep 2
292
+ @@driver . back
293
+ sleep 1
294
+
295
+ # Get .zip file
288
296
file = @@driver . get_performance_record ( save_file_path : './test_start_performance_record_and_stop' ,
289
- profile_name : 'Activity Monitor ' )
297
+ profile_name : 'Time Profiler ' )
290
298
291
299
assert File . exist? ( file . path )
292
-
293
- File . delete file . path
294
- assert !File . exist? ( file . path )
295
300
end
296
301
297
302
def test_clipbord
You can’t perform that action at this time.
0 commit comments