Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular expression help
#1
Not Solved
can anyone help me figuring out the regular expression for the below kind of object


Code:
OracleFormWindow("ADANE,EUTINIO").OracleButton("Service").Click
OracleFormWindow("ADANE,EUTINIO E").OracleButton("Service").Click

i tried giving like
Code:
((A-Z)*/,(A-Z)*/s(A-Z)*))

its not working

any help is highly appreciated.

-g
Reply
#2
Not Solved
hey g,
set the regular expression pattern like "[a-zA-Z],[a-zA-Z]"
and let me know how it goes.

Reply
#3
Not Solved
Hey Saket

this doesn't work...i get the below error

Run Error : Cannot find the "Service" object's parent "ADANE,EUTINIO" (class OracleFormWindow). Verify that parent properties match an object currently displayed in your application.
Line (13):
Code:
"OracleFormWindow("ADANE,EUTINIO").OracleButton("Service").Click".
Reply
#4
Not Solved
sorry for misleading you, I thought you just need the regular for the text there. try this-
In your OR, regualrise the text for form window with ".*"

Reply
#5
Not Solved
Hey,

Does that mean, do I need to change in the Name of the object and in the short title property ..selecting as the regular expression and giving ".*" over there?

i tried giving this expression at both places but its not working

the code is looking like

Code:
OracleFormWindow(".*").OracleButton("Service").Click

and again it gives me the same error.

Thanks
Reply
#6
Not Solved
If "ADANE,EUTINIO" value would remains constant means then try to Regularize the 'OracleFormWindow' Object's property value in Object Repository as given below.

Code:
OracleFormWindow("ADANE,EUTINIO.*").OracleButton("Service").Click
Reply
#7
Not Solved
Friend
The regulate the expression level is not encoded, attach it to the repository ..
Reply


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

Forum Jump:


Users browsing this thread: 4 Guest(s)