Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression
#1
Not Solved
Hi All,
I recently started working on QTP. I am trying to implement descriptive programming and regular expression together.

Code:
Browser("abcd").Page("abcd").WebEdit("html tag:=INPUT","Html id:=txt+","Name:=txt+")

I checked the Object property, html id is txtname or txtpassword etc, few other too starting with 'txt'

however, I am getting run time error with "txt+" , can anyone please help me with the error.

Thanks,

Sam
Reply
#2
Not Solved
Code:
strHTMLID="txt.*"
Browser("abcd").Page("abcd").WebEdit("html tag:=INPUT","Html id:="&strHTMLID,"Name:=txt+")


Try the above code.

Regards,
Ankesh
Reply
#3
Not Solved
Thanks Ankesh, I'll try it soon and let you know.
Reply
#4
Not Solved
Hi Ankesh,
can you please help me again.
I tried the above code, however I am still getting error. It seems strHTMLID="txt.*" is not refrenced as "txtName" or "txtlogin"

Can you please suggest further.

Thanks

Sam
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)