Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identify browsers with title property
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

My application is web-based. During the execution i will have more than a couple of browser. They differ in their "title" property.

Now i need to work on all the browser has the title as "sample.com". Instead of collecting all the browsers and verifying the title of each of them and work on them if the title is "sample", I wanted to define the title value in the object description itself.

Is it possible to use a kind of simple regular expression in object descrption.

So that i can look for the browsers with titles as "sample.com".
Actual title is "www.sample.com" and few of the other possible titles are "www.sample1.com", "www.sample2.com"
It will be better if i can choose the browsers that has the title as "sample" .

I tried as:
Code:
Set brsdesc= description.Create()
brsdesc("micclass").value="Browser"
brsdesc("title").value=".*" & "sample"& ".*"

But the browser was not recognized.

How can i achieve this within the object description.
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Try:

Code:
Set brsdesc= description.Create()
brsdesc("micclass").value="Browser"
brsdesc("OpenURL").value=".*sample.*"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need help on using regular expressions on Java Window's title qa_tester 3 5,078 02-13-2012, 10:56 PM
Last Post: madsenfr
  Regular Expression for a Complex Browser Title preet4u007 3 4,173 02-13-2011, 06:08 AM
Last Post: markQA
  Regular expression to identify browser with different Title slowing script execution umer830 5 5,619 12-09-2009, 11:21 AM
Last Post: nil
  help me to use regular expressions in Browser title penguinnoy 5 4,070 06-15-2009, 10:49 PM
Last Post: yaseenarfath
  need help to use regular expressions in Browser title snikam 4 3,768 03-24-2009, 04:15 PM
Last Post: ashfaqdhanakwala

Forum Jump:


Users browsing this thread: 1 Guest(s)