Hello,
I am currently using the WebUI Test Studio QA Edition and am having trouble the the .Click events when I create custom code. I am searching for a button's xpath on the site using Firefinder in Firefox, and it finds the correct xpath. My code for this looks like:
HtmlAnchor logoutLink = Find.ByXPath<HtmlAnchor>("//a[@title='Logout'][1]");
logoutLink.Click(false);
But I keep getting this error:
'[LogoutStep_CodedStep] : Click the log out link'.
InnerException:
System.NullReferenceException: Object reference not set to an instance of an object.'
I'm not sure why this is happening.
Thanks,
Eric
I am currently using the WebUI Test Studio QA Edition and am having trouble the the .Click events when I create custom code. I am searching for a button's xpath on the site using Firefinder in Firefox, and it finds the correct xpath. My code for this looks like:
HtmlAnchor logoutLink = Find.ByXPath<HtmlAnchor>("//a[@title='Logout'][1]");
logoutLink.Click(false);
But I keep getting this error:
'[LogoutStep_CodedStep] : Click the log out link'.
InnerException:
System.NullReferenceException: Object reference not set to an instance of an object.'
I'm not sure why this is happening.
Thanks,
Eric