Validate exists returns false when using rxpath
Posted: Mon Jan 07, 2013 9:24 am
Hi,
I'm trying to verify if a wpf window exists on screen with validate.exists().
It works fine when i send in an element, or repoinfo item.
But when i send in an rxpath or string item it always returns false, even though the item is there.
My code:
I recieve a
rxpath: "/form[@name='Main Window - GPI']"
bool exists= Validate.Exists(rxPath, timeout, "Check Object '{0}'",new Validate.Options(false, ReportLevel.Warning));
Why do i always get false in this=?
Am i missing something??
The item is there, it works if i just call:
Validate.Exists(repo.iteminfo);
I need to validate with rxpath so that i can set searchtimeout.
really appreciate if anyone could help me in the right direction.
I'm trying to verify if a wpf window exists on screen with validate.exists().
It works fine when i send in an element, or repoinfo item.
But when i send in an rxpath or string item it always returns false, even though the item is there.
My code:
I recieve a
rxpath: "/form[@name='Main Window - GPI']"
bool exists= Validate.Exists(rxPath, timeout, "Check Object '{0}'",new Validate.Options(false, ReportLevel.Warning));
Why do i always get false in this=?
Am i missing something??
The item is there, it works if i just call:
Validate.Exists(repo.iteminfo);
I need to validate with rxpath so that i can set searchtimeout.
really appreciate if anyone could help me in the right direction.