|
|
|
|
Regular Expression for a Complex Browser Title
|
|
03-04-2010, 12:50 PM
Post: #1
|
|||
|
|||
|
Regular Expression for a Complex Browser Title
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/dcDocumentRetrieve.asp?FileName=Docmanager\ArchivedDocuments\Doc00457.Rev00002.txt&BrowserAction=Save&SaveAsName=textDoc.txt&CheckOutRevision=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 |
|||
|
03-25-2010, 07:16 PM
Post: #2
|
|||
|
|||
RE: Regular Expression for a Complex Browser Title
(03-04-2010 12:50 PM)preet4u007 Wrote: Hii, 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. Happy Testing Prabhat |
|||
|
03-25-2010, 09:22 PM
Post: #3
|
|||
|
|||
|
RE: Regular Expression for a Complex Browser Title
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. Thanks |
|||
|
02-13-2011, 06:08 AM
Post: #4
|
|||
|
|||
|
RE: Regular Expression for a Complex Browser Title
try:
Browser("title:=.*). |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| Regular expression for this string | falvi | 2 | 238 |
04-30-2012 11:14 AM Last Post: falvi |
|
| regular expression | rjkmr.aiht | 0 | 146 |
04-27-2012 11:37 AM Last Post: rjkmr.aiht |
|
| Regular Expression | samverma | 3 | 348 |
03-31-2012 01:21 AM Last Post: samverma |
|
| Square Bracket Issue - Regular Expression | kapsig431 | 2 | 281 |
03-29-2012 08:38 PM Last Post: kapsig431 |
|
| Regular Expression for time in 24 hour format with out colon | Pallavi | 3 | 431 |
03-13-2012 11:29 AM Last Post: sshukla12 |
|
User(s) browsing this thread: 1 Guest(s)
|
|

Search
Member List
Calendar
Help



