Hi, The best way to capture the value from the webelement is place a standard check pt on the required webelement. If you see the check point properties from the object repository you can find one object proerty with item1 or item2 will give u the number.you have to capture this number by using GetROProperty(item2). Thanks Sridhar
On Sat, Apr 3, 2010 at 9:59 PM, Daim Phillips <[email protected]> wrote: > Hi, > > Yes, I need to get the number alone. Please provide me the exact script for > that > > Secondly, I just want to know how inverted commas can be used while > defining properties, e.g. > > WebElement("innertext:= The "Employee" is") > > On Fri, Apr 2, 2010 at 5:40 PM, Santiago Andreuzza <[email protected] > > wrote: > >> Hi Daim, >> do you need to get just the number? >> you can use >> >> P1 >> find the postion in the string, after that get just the postion to end >> of string. >> Right(string,InStr(string,"is")) >> >> P2 >> with regular expression should work. or are you needing a specific >> employee number? >> x = Browser().Page().WebElement("innertext:= The "Employee >> No.*").GetRoProperty ("innertext") >> >> >> Santiago. >> >> On Apr 2, 1:56 am, Daim <[email protected]> wrote: >> > Thanks for the guidance. >> > >> > I have successfully captured the string using GetRoProperty by using >> > regular expression >> > >> > I need to solve two problems. >> > >> > Problem 1. I need to get 44512 from the following text: >> > >> > The "Employee No." is "44512" >> > >> > GetRoProperty returns me the whole string. >> > >> > Problem 2. How to use inverted commas in descriptive programming, e.g. >> > >> > x = Browser().Page().WebElement("innertext:= The "Employee No." is >> > "44512" ").GetRoProperty ("innertext") >> > msgbox x >> >> -- >> >> You received this message because you are subscribed to the Google >> "QTP - HP Quick Test Professional - Automated Software Testing" >> group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<mercuryqtp%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/MercuryQTP?hl=en >> >> To unsubscribe, reply using "remove me" as the subject. >> > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<mercuryqtp%[email protected]> > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
