Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help to improve the statement
#1
Not Solved Shy 
The statement below work only if there are several items in the Installed Assets applet but if there is only one item it will not work. Is there a way to improve the statement below? Also if there are several items in the list and you need to scroll down and the item you were looking for will be seen once you scroll down it will also cause an error.  Please help.

Dim objProduct
Dim intLoopCounter
Dim intLoopCounter2
Dim objProduct
intLoopCounter = 0
intLoopCounter2 = 0
Do Until objProduct = strInstalledAssets
 objProduct = SiebApplication("Siebel Communications").SiebScreen("Accounts").SiebView("Account Summary").SiebApplet("Installed Assets").SiebList("List").SiebText("Product").GetROProperty("text")
    DataTable.Value("data", dtLocalSheet) = objProduct
    intLoopCounter = intLoopCounter + 1
    SiebApplication("Siebel Communications").SiebScreen("Accounts").SiebView("Account Summary").SiebApplet("Installed Assets").SiebList("List").ActivateRow intLoopCounter
  
Loop
intLoopCounter2 = intLoopCounter - 1
SiebApplication("Siebel Communications").SiebScreen("Accounts").SiebView("Account Summary").SiebApplet("Installed Assets").SiebList("List").ActivateRow intLoopCounter2
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP Siebel Improve Performace Patch for QTP 10.0 supputuri 0 3,029 07-24-2009, 04:32 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)