Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression for a Complex Browser Title
#1
Not Solved
Hii,

I have a File Download Dialog present in a browser.

I want to perform Browser().Dialog().Activate

But, the Browser Title is a complex string such as

https://mywebsite.com/mylocation/dcDocum...Revision=1

The following items in the title are dynamic.
1.mylocation
2.00457
3.00002.txt (can be 00002.pdf even)
4.textDoc.txt
5.1

Please suggest a way of identifying the browser object using regular expression.

Thanks,

Preet
Reply
#2
Not Solved
Hi Ankur,

I even face the same condition and need your response on this.
This is particularly for when we click on a link which opens a Dialog containg "Save" and "Cancel" buttons and a Browser behind the Dialog having dynamic title.
Reply
#3
Not Solved
This should work.

Code:
^https?\://mywebsite.com(/\S*)

This should match http or https, the domain name can not change, then any non-whitespace in the path to the end.
Reply
#4
Not Solved
try:

Browser("title:=.*).
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,519 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,390 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,854 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,632 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,140 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)