As the title says, my parent test is failing specifically on a FindElementException that the Subtest is catching. Am I missing something?
My expected outcome would be for my test to carry on if I'm catching the exception that would otherwise fail the test.
Parent Test
->Execute test "SubTest.tsttest"
SubTest
StackTrace
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[checkForCertErrorIE] : Click 'OverridelinkLink''.
InnerException:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used:
[id 'Exact' overridelink] AND [tagname 'Exact' a]
My expected outcome would be for my test to carry on if I'm catching the exception that would otherwise fail the test.
Parent Test
->Execute test "SubTest.tsttest"
SubTest
// Click 'OverridelinkLink'
try
{
Pages.CertificateError.OverridelinkLink.Click(
false
);
}
catch
(FindException e){
Log.WriteLine(
"IE Override Link not found"
);
}
StackTrace
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[checkForCertErrorIE] : Click 'OverridelinkLink''.
InnerException:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used:
[id 'Exact' overridelink] AND [tagname 'Exact' a]