Replacing title of base form

Ask general questions here.
monkey2012
Posts: 77
Joined: Wed Sep 26, 2012 8:15 pm

Replacing title of base form

Post by monkey2012 » Wed Sep 26, 2012 8:22 pm

Can I change /form[@title='Form1'] to /form[@title='FormN'] where N=2, 3, 4, 5, .... at runtime

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3930
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Replacing title of base form

Post by odklizec » Thu Sep 27, 2012 5:33 am

I would use something like this... /form[@title~'^Form[0-9]'] or this /form[@title~'^Form*'] (more universal). Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration