Forum Discussion
Can you share the context of where you're using this code?
Keep in mind, that it will wait 15 seconds and, if the object is not present within those 15 seconds, it will return a "false" result. So, it COULD be that you're just not waiting long enough. Have you tried increasing the timeout value?
var encryp=page.WaitElement("//input[contains(@id,'rdbSecurityTrue')]", 15000).Exists
Log.Message(encryp)
if (encryp==true){
page.FindChildByXPath("//input[@id='rdbSecurityTrue']").Click();
page.FindChildByXPath(".//*[@id='sslSecurityFalse']").Click();
}
above is the piece of code encryp value always comes false. one more thing is that from this condition is a new page before the condition page was different and it doesn't wait even sec to check it seems as scripts stops immediately.
Related Content
- 4 years ago
- 4 years ago
- 3 years ago
Recent Discussions
- 9 hours ago