File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
rb/spec/integration/selenium/webdriver Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 69
69
expect ( driver . find_element ( :id , "withText" ) . attribute ( "rows" ) ) . to eq ( "5" )
70
70
end
71
71
72
- # TODO - File Edge bug, this should return nil, but throws an error
73
- # Selenium::WebDriver::Error::UnknownError: unknown error
74
- it "should return nil for non-existent attributes" do
75
- driver . navigate . to url_for ( "formPage.html" )
76
- expect ( driver . find_element ( :id , "withText" ) . attribute ( "nonexistent" ) ) . to be_nil
72
+ not_compliant_on :edge do
73
+ it "should return nil for non-existent attributes" do
74
+ driver . navigate . to url_for ( "formPage.html" )
75
+ expect ( driver . find_element ( :id , "withText" ) . attribute ( "nonexistent" ) ) . to be_nil
76
+ end
77
+ end
78
+
79
+ # Per W3C spec this should return Invalid Argument not Unknown Error, but there is no comparable error code
80
+ compliant_on :edge do
81
+ it "should return nil for non-existent attributes" do
82
+ driver . navigate . to url_for ( "formPage.html" )
83
+ element = driver . find_element ( :id , "withText" )
84
+ expect { element . attribute ( "nonexistent" ) } . to raise_error ( Selenium ::WebDriver ::Error ::UnknownError )
85
+ end
77
86
end
78
87
79
88
it "should clear" do
You can’t perform that action at this time.
0 commit comments