1414require "support/external_browser"
1515
1616puts ""
17- command = Ferrum ::Browser ::Command . build ( { window_size : [ ] } , nil )
17+ command = Ferrum ::Browser ::Command . build ( Ferrum :: Browser :: Options . new , nil )
1818puts `'#{ command . path } ' --version`
1919puts ""
2020
@@ -69,6 +69,7 @@ module TestSessions
6969 #all with obscured filter should find top nodes outside the viewport when true
7070 #all with obscured filter should only find non-top nodes when true
7171 #fill_in should fill in a color field
72+ #fill_in should handle carriage returns with line feeds in a textarea correctly
7273 #has_field with valid should be false if field is invalid
7374 #find with spatial filters should find an element above another element
7475 #find with spatial filters should find an element below another element
@@ -90,8 +91,8 @@ module TestSessions
9091
9192 if ENV . fetch ( "CI" , nil )
9293 session = @session || TestSessions ::Cuprite
93- session . driver . browser . logger . truncate ( 0 )
94- session . driver . browser . logger . rewind
94+ session . driver . browser . options . logger . truncate ( 0 )
95+ session . driver . browser . options . logger . rewind
9596 end
9697
9798 example . run
@@ -124,7 +125,7 @@ def save_exception_screenshot(browser, filename, line_number, timestamp)
124125
125126 def save_exception_log ( browser , filename , line_number , timestamp )
126127 log_name = "logfile-#{ filename } -#{ line_number } -#{ timestamp } .txt"
127- File . binwrite ( "/tmp/cuprite/#{ log_name } " , browser . logger . string )
128+ File . binwrite ( "/tmp/cuprite/#{ log_name } " , browser . options . logger . string )
128129 rescue StandardError => e
129130 puts "#{ e . class } : #{ e . message } "
130131 end
0 commit comments