Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can you use Regular expressions in an OR objects description
#5
Solved: 11 Years, 3 Months, 3 Weeks ago
I would love it if I could do that but the title is so complex that for whatever reason QTP cannot recognize it(or maybe there is another reason for that). The Main Window of my app is identified through regexpwndtitle =
"Application 1 Core v4.0 [ 3.022.013C ]. Logged in as 'USER1' QA ENV"
There are 3 different places in that name that are variable.
Even using regular expressions to do the following is not recognized.
"Application 1 Core v4\.0 \[ 3\.022\.013C \]\. Logged in as 'USER1' QA *"
Since this is the main window in which all other objects reside in using Descriptive programming is unrealistic. I resolved the problem by getting the object name using the WIN API Function FindWindow to get the current name and then SetTOProperty to name it correctly. That seems to work without problem. Thanks,
.......
Reply


Messages In This Thread
RE: Can you use Regular expressions in an OR objects description - by pamandel - 08-13-2009, 06:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
At Regular Expressions for e-mail address ganesh.dengale 6 19,154 08-23-2022, 02:51 PM
Last Post: ahmad3029
  How to disable regular expressions in a text? ttralor 6 6,709 07-05-2013, 02:44 PM
Last Post: Staff
  Need help on using regular expressions on Java Window's title qa_tester 3 5,050 02-13-2012, 10:56 PM
Last Post: madsenfr
  java window titles & regular expressions jotdog2 1 4,211 02-13-2012, 10:55 PM
Last Post: madsenfr
  Process to use Regular Expressions in QTP using screen shots. yvslraotesting@gmail.com 1 3,496 01-31-2012, 12:45 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)