Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ho to get a part of innertext's value
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi QTP Learner and Venkatesh,

I appreciate your responses, but what will happen if tomorrow he got (12345XXXX). Then it will break, so we have to make it very generic as below

Code:
InnerTextValue ="Search Results (9856742310)"
SearchResults = Split(Split(InnerTextValue,"(")(1),")")(0)
If  SearchResults = "" Then
    Msgbox "No Search results found."
Else
    Msgbox SearchResults
End If

In this way we can reduce the LOC and make it more generic.

Let me know if you have questions or need any more information.
Thanks,
SUpputuri
Reply


Messages In This Thread
ho to get a part of innertext's value - by lotos - 08-18-2010, 05:10 PM
RE: ho to get a part of innertext's value - by supputuri - 08-18-2010, 08:20 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,227 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,886 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: 4 Guest(s)