Wild card not supported in Property Checkpoint > URL? I am getting an error!
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Wild card not supported in Property Checkpoint > URL? I am getting an error!
Trying to confirm a page/url, as in -
aqObject.CheckProperty(Aliases.browser.pifHome, "URL", cmpEqual, "https://*.mydomain.com/THC/MainMenu.aspx*");
I am getting "The "URL" property of the "Aliases.browser.pifHome" object does not meet the checkpoint's condition."
Help is much appreciated.
Dave
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rather than cmpEqual, I think you need cmpMatches
and then set your value up as a regular expression
https://support.smartbear.com/testcomplete/docs/reference/misc/regular-expressions.html
The way you have it now, the * is just part of the string that's being compared and it doesn't match, so the error shows up.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply. I will try that, and post here if I have any issues.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Marsha
First, thank you for pointing me to right direction! For now, I am bypassing having to learn regular expression (deadline!), by using cmpContain to match "mydomain.com/THC/MainMenu.aspx".
Need to learn regular expression. 🙂
Thank you!
