Hi,
After save or page re-load actions, I want to look for specific error elements to see if any errors occurred. I am using Validate NotExists but it takes so long since it uses the effective timeout.
How can I do the check for errors in 2.5 seconds or so? Can the test override the effective timeout at runtime?
Thanks for the help,
Lorinda
Validate NotExists without using max effective timeout?
Re: Validate NotExists without using max effective timeout?
Hi,
I'm afraid, that what you need is not achievable without a little coding. You can use something like this:
Eventually, you can go this way, but I'm not quite sure, if the Duration parameter affects Effective search timeout, of given element?...
In my opinion, 2.5sec timeout is a little too low. I would use, at very least, 10secs. But it depends of typical search speed of given element? So make you the timeout you use, is not lower than usual search speed for error message you want to find (if available).
I'm afraid, that what you need is not achievable without a little coding. You can use something like this:
Code: Select all
public static void YourMethod(RepoItemInfo txtToolbarInfoElement)
{
if (!txtToolbarInfoElement.Exists(2500))
{
Report.Success("Validation", "Element does not exists.")
}
}
Code: Select all
public static void YourMethod(RepoItemInfo txtToolbarInfoElement)
{
Validate.NotExists(txtToolbarInfoElement.AbsolutePath, 2500, "Element does not exists.")
}
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Validate NotExists without using max effective timeout?
Hi Pavel,
Thanks for your reply. That's fine on the bit of coding. Thanks for sending the snippet! =)
Have a great day (or evening), Pavel.
Lorinda
Thanks for your reply. That's fine on the bit of coding. Thanks for sending the snippet! =)
Have a great day (or evening), Pavel.
Lorinda