Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to make a dynamic name for~Window("asdf")~
#1
Solved: 11 Years, 4 Months ago Rolleyes 
hey, my question is:
Is it possible to make a dynamic name for Window("winrar").Activate
I would like to make it winrar* -->?? so if i would have "winrar lite" It will be used.


I hope you all unterstand what i mean. It is hard to explain.


best greets.
Konstantin
Reply
#2
Solved: 11 Years, 4 Months ago
Yes, use regular expression for that property.

For this case, In OR change the value of the corresponding property to winrar.* If there are any special characters in fixed part of the value make sure to escape them with \ (back slash).
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 11 Years, 4 Months ago
Hi Ankur,
here is my solution.
I made it with the objekt reprository.
At the detail description of my window I add as title: winrar[A-Za-z\s]*
With that it worked great.

Thanks for your help.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object doesn't support this property or method: 'window(...).window(...).winobject' senthil5683 1 3,695 07-04-2016, 07:08 PM
Last Post: venkatesh9032
  How to make a function for an object that has a large number of parent objects Shroomsday 1 2,402 01-28-2014, 11:15 PM
Last Post: jacosta
  Clicking on Window object to make it a javaedit object indranilgoswamimcb 0 2,167 11-03-2013, 09:03 PM
Last Post: indranilgoswamimcb
Question Dynamic Link which opens in new window Help starscream 6 6,527 08-10-2011, 11:59 AM
Last Post: suresh vasu
  DP and called .vbs make for slow runtime wheelercha 0 1,902 01-05-2011, 02:39 AM
Last Post: wheelercha

Forum Jump:


Users browsing this thread: 1 Guest(s)