Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
regular expression
#16
Solved: 10 Years, 9 Months, 2 Weeks ago
Ah ha! That's the trick then! I thought that when there was nothing in the folder, the parenthesis and digits would both be gone. try:

Code:
Browser("micclass:=Browser").Page("micclass:=Page").Link("html tag:=A", "text:=Junk \(\d*\)").Click

This says: click the link that has the text "Junk (" that may have zero to many digits followed by the text ")". Also, when doing inline descriptive programming, you do not have to call out the micclass property since it is implied by the fact that you are calling the Link() function. We only use it for Browser and Page as dummy properties so that we get back the only Browser with any Page on it (i.e no identification properties).
Reply


Messages In This Thread
regular expression - by bangla123 - 10-06-2010, 12:30 AM
RE: regular expression - by jsknight1969 - 10-06-2010, 12:39 AM
RE: regular expression - by bangla123 - 10-06-2010, 12:46 AM
RE: regular expression - by jsknight1969 - 10-06-2010, 12:52 AM
RE: regular expression - by bangla123 - 10-06-2010, 12:52 AM
RE: regular expression - by jsknight1969 - 10-06-2010, 01:02 AM
RE: regular expression - by bangla123 - 10-06-2010, 01:06 AM
RE: regular expression - by jsknight1969 - 10-06-2010, 01:16 AM
RE: regular expression - by bangla123 - 10-06-2010, 01:26 AM
RE: regular expression - by Pallavii - 10-06-2010, 02:37 PM
RE: regular expression - by bangla123 - 10-06-2010, 10:34 PM
RE: regular expression - by cdesserich - 10-07-2010, 01:07 AM
RE: regular expression - by bangla123 - 10-07-2010, 08:52 PM
RE: regular expression - by jsknight1969 - 10-06-2010, 01:37 AM
RE: regular expression - by bangla123 - 10-06-2010, 02:08 AM
RE: regular expression - by cdesserich - 10-06-2010, 04:17 AM
RE: regular expression - by bangla123 - 10-06-2010, 09:13 PM
RE: regular expression - by cdesserich - 10-08-2010, 09:35 PM

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

Forum Jump:


Users browsing this thread: 1 Guest(s)