Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression to click an Link
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hello Members,

Good Day. I am facing an issue while automating my application. When my form gets submitted, it will create an assignment for another user in the form of link.

The link looks like below:
Issue: IS-101687, Stage:Issue Moderator - Review Issue, Subject:Issue-024(48969)

Out of which the bold ones are dynamically changing values. I used Database output values to get all dynamically changing values. But for certain reasons I am not anle to use the value for 48969 which is nothing but Event ID.

I want to replace the last dynamically changing value to Regaular Expression.
Here is my link: (After getting values from DB, I am passing the value to Data Table and from there I am using it again.)

Code:
d=trim(DataTable("Event_Id", dtGlobalSheet))

iname=trim(DataTable("Issue", dtGlobalSheet))

a=trim(DataTable("Issue_Id", dtGlobalSheet))

alink = "Issue: "+a+", Stage:Issue Moderator - Review Issue, Subject:"+iname+"("+d+")"

DataTable("link", dtGlobalSheet)=alink

ilink=DataTable("link", dtGlobalSheet)

Browser("Browser").Page("Infocenter - MetricStream").Link("Issue: IS-100120, Stage:Issue").SetTOProperty "text", ilink

Browser("Browser").Page("Infocenter - MetricStream").Link("Issue: IS-100120, Stage:Issue").Click

I tried using RE, but ends in vain. Can any one you, help me out resolving this issue. Your help is greatly appreciated.

Thanks
Ram
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Ru using VBSciprt if so
alink = "Issue: "+a+", Stage:Issue Moderator - Review Issue, Subject:"+iname+"("+d+")" is not correct
alink = "Issue: " & a & ", Stage:Issue Moderator - Review Issue, Subject:" & iname & "(" & d & ")"
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)