Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression help
#1
Not Solved
Hi,
I'm trying to identify a browser window in one of my tests. The name (property title) changes for each run. An example is:

abc.xyz.123.com:8076/OA_CGI/FNDWRR\.exe?temp_id=111111

The common portion is always:
abc.xyz.123.com:8076/OA_CGI/FNDWRR\.exe?temp_id=

So can I identify this window using a regular expression like this:
Code:
Window("title:=http://abc\.xyz\.123\.com:8076/OA_CGI/FNDWRR\.exe?temp_id=*")
I've put a backslash in front of each period so that they are interpreted literally.

It doesn't work, so I'm wondering if my expression is incorrect, or if I can't do this.

Thanks for any assistance you can offer.
Reply
#2
Not Solved
Hi mitch,

My first question is are you sure that the title property value is showing the URL? If, yes then you can use the below code.

Code:
Window("title:=http://abc.xyz.123.com:8076/OA_CGI/.*").Highlight

Please let me know if you need any more information.
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,484 10-05-2016, 11:05 AM
Last Post: Ankur
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,353 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,817 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,565 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,114 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)