File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
rb/spec/integration/selenium/webdriver/bidi Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -69,23 +69,17 @@ class BiDi
6969 it 'get windows' do
7070 browser = described_class . new ( bidi )
7171 windows = browser . windows
72+ active_window = windows . first
7273
73- window = windows . first
74-
75- expect ( window ) . to be_a ( Selenium ::WebDriver ::BiDi ::Browser ::Window )
76- expect ( window ) . to have_attributes (
74+ expect ( active_window ) . to be_a ( Selenium ::WebDriver ::BiDi ::Browser ::Window )
75+ expect ( active_window ) . to have_attributes (
7776 handle : an_instance_of ( String ) ,
78- active : be_in ( [ true , false ] ) ,
77+ active : be_falsey ,
7978 state : 'normal' ,
8079 height : an_instance_of ( Integer ) ,
8180 width : an_instance_of ( Integer )
8281 )
8382 end
84-
85- it 'checks if a window is active' do
86- browser = described_class . new ( bidi )
87- expect ( browser . windows . first ) . to be_active
88- end
8983 end
9084 end
9185 end
You can’t perform that action at this time.
0 commit comments