08-18-2010, 05:10 PM
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:
Now:
InnerTextValue = "Search Results (4)"
I just don't know how to get the '4' from there.
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.