Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ho to get a part of innertext's value
#1
Solved: 11 Years, 3 Months, 4 Weeks ago Question 
Hi All,
my issue is next:
I have an WebElement which have next innertext for e.g.:
Search Results (4)

can anyone help me to get the number from () and assign it to a variable, because it is always different, and I have to compare it with some other numbers.

I'll have next line:
Code:
InnerTextValue = Browser("URL:=" & Environment.Value("baseUrl")).Page("URL:=" & Environment.Value("baseUrl")).WebElement("outertext := Search Results (4)", "html tag := LEGEND").GetROProperty ("innertext")

Now:
InnerTextValue = "Search Results (4)"

I just don't know how to get the '4' from there.
Reply


Messages In This Thread
ho to get a part of innertext's value - by lotos - 08-18-2010, 05:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Part of parameters missing when passing between actions skumar007 1 2,990 10-10-2014, 02:00 AM
Last Post: skumar007
  Webelement innertext is not case sensitive san4hex 7 6,223 05-13-2013, 02:59 PM
Last Post: basanth27
  Parameterizing a part of script itsnotmyid 3 3,453 08-09-2011, 09:02 AM
Last Post: parminderdhiman84
Question Doesn't store value into database using Innertext Langxii 1 2,884 07-05-2011, 07:48 PM
Last Post: rajpes
  Exist returns false with part of innertext Milindt43 1 2,927 02-23-2011, 09:56 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 3 Guest(s)