Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can fetch a value from pop-up box
#6
Solved: 11 Years, 4 Months ago
Code:
Temp_Text_Whole = Browser("dfsd:=dfs").Page("dfse:=ndj).Webtable("innertext:=     The .*).GetROProperty("innertext")
            Startpos = Instr(1,Temp_Text_Whole, "is:")
            endpos = (Instr(1,Temp_Text_Whole, "") - Startpos)
            Temp_Text_Mid = mid(Temp_Text_Whole, Startpos, endpos )
            Temp_Text_Id = trim(replace(Temp_Text_Mid , "ID: ", ""))
            Split_Temp_Text_Id=split(Temp_Text_Id ,":",-1,1)
            Temp_Text=Split_Temp_Text_Id(1)

msgbox (Temp_Text)

This code will capture entire line starting from "The" of the "The count for this is 7" and then it will trim to get the "Number" it may be 7 or 10 or even 100

Pls let me know the result

Regards
Raj
Reply


Messages In This Thread
How can fetch a value from pop-up box - by aditya - 01-22-2008, 01:57 PM
RE: How can fetch a value from pop-up box - by Rajashekar Gouda - 01-22-2008, 06:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SAP GUI gets hanged while closing the Windows Pop Up kathirvelnagaraj 0 5,534 10-23-2015, 06:47 PM
Last Post: kathirvelnagaraj
Rolleyes QTP pop up window handling piyush8793 3 16,890 10-15-2015, 11:03 PM
Last Post: Venkateswarluponna
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 11,365 07-09-2014, 10:43 PM
Last Post: hhamilton
  select a date from pop-up calendar Dertjon 1 5,764 05-13-2014, 02:29 PM
Last Post: Ankur
  QTP not clicking on Yes button in the IE pop up dialog adityasrinivasb 2 9,630 09-29-2013, 11:01 PM
Last Post: prashantrawat101@gmail.com

Forum Jump:


Users browsing this thread: 3 Guest(s)