QTP 10 Issues with Regular Expression
I recently came across an Issue where QTP is not able to identify Objects with Regular Expression. I have faced the issue with Browser object,
Browser("openurl:=www.google.com") works but Browser("openurl:=*.google.*") doesn't.
Also, when I add Browser object with openurl property and specify the entire url www.google.com (without checking the regular expression), QTP identifies object correctly. But if I check the Regular Expression option with same value, QTP is unable to identify the object.
Note : I have tried uninstalling and reinstalling QTP 10 (with registry cleaning).
Any pointers would be exteremly helpful.
Re: QTP 10 Issues with Regular Expression
Go throgh the help for Regular Expression
Try this code
Here problems are you used regular expression in wrong way (*.) and when you launch browser then navigates to www.google.com openurl property will be about blank.