Hello, I am new to testStudio, and somewhat new to C#, so this may have an obvious answer, but it seems pretty straightforward...
[CodedStep(@"Verify 'logged in' status")]
public void Verify_logged_in_status()
{
Pages.KDHERadon2.SignOutRibbonButton.Wait.ForExists(7000);
if (Pages.KDHERadon2.SignOutRibbonButton.IsVisible() == false)
{
this.ExecuteTest("Login to Radon.tstest");
}
}
What I want to happen is if the log out button is not visible, I want the application to execute the log-in 'test' to get logged in. It waits for the element to be visible for 7 seconds, and if it is not visible, it executes the log in test.
But instead of this, this coded step simply 'fails'. I do not understand why this is happening, can someone please enlighten me.