Hi
What I'm trying to do is verify if the checkbox is checked and if not - check it, else - simply run the webUI built-in checkbox verification.It keeps returning the syntax error in line right after THEN statement. What am I missing?
Here is how code looks like:
Public Sub Change_Reason_CodedStep6()
if Pages.Application.SilverlightApp.ChkIsActiveCheckbox.IsChecked = false then
(Pages.Application.SilverlightApp.ChkIsActiveCheckbox.User.Click(ArtOfTest.WebAii.Core.MouseClickType.LeftClick, 6, 9, ArtOfTest.Common.OffsetReference.TopLeftCorner, ArtOfTest.Common.ActionPointUnitType.Pixel, CType(0,System.Windows.Forms.Keys)))
else
Assert.AreEqual(true, Pages.Application.SilverlightApp.ChkIsActiveCheckbox.IsChecked, "Property did not satisfy constraint")
End if
End Sub
I’ll appreciate any advice
Thanks in advance
Helen