Skip to content

Commit

Permalink
Test fix - SelectMethod_InvalidXPathSelector_ExpectedException
Browse files Browse the repository at this point in the history
  • Loading branch information
quigamdev committed Jun 23, 2024
1 parent cb5da49 commit af74b79
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,14 @@ public void SelectMethod_InvalidXPathSelector_ExpectedException()
var elem = browser.Single("#span");
elem.Single("///***-*///@@##@šš+š++++---><<>''", By.XPath);
});
throw new System.Exception("SelectMethod_InvalidXPathSelector_ExpectedException was supposed to fail!!!");
}
catch (System.Exception)
{
// ignore
// reason: Firefox driver and Chrome driver throw different exceptions
return;
}
throw new System.Exception("SelectMethod_InvalidXPathSelector_ExpectedException was supposed to fail!!!");
}
}
}

0 comments on commit af74b79

Please sign in to comment.