Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hepl required to dyanamically identified username and create the object in object rep
#12
Not Solved
Hi Ankesh,

Now am not getting the error i added OR in workarea_2 and updated code as like below.

Code:
strResultMsg= Browser("Browser").Page("Page").Frame("workarea_2").WebElement("Customer Record Search").GetROProperty("innertext")

Now the problem is ... in the page it showing 0 records am not getting mssgbox prompts seems loops is not working...

Am running on debug mode

Code:
strResultMsg= Browser("Browser").Page("Page").Frame("workarea_2").WebElement("Customer Record Search").GetROProperty("innertext")  .... F11 cursor moving to

If strResultMsg ="0 records returned" Then

F11 cursor moving to

Elseif strResultMsg="1 records returned" Then

F11 cursor moving to
End If
Loop Until strResultMsg="0 records returned"

F11 cursor moving to

strResultMsg ="0 records returned" Then loops not working please help me

Am pasting the code once again

Do
       Browser("Browser").Page("Page").Frame("toolbar").Link("Customer Search").Click
       Browser("Browser").Page("Page").Frame("workarea").WebEdit("v_value").Set GEOVoIPnumber
       Browser("Browser").Page("Page").Frame("workarea").WebButton("Search").Click

       strResultMsg= Browser("Browser").Page("Page").Frame("workarea_2").WebElement("Customer Record Search").GetROProperty("innertext")
'chk for the message
If strResultMsg ="0 records returned" Then
      msgbox"Please procced to build"
Exit Do ' Exit the loop
Elseif strResultMsg="1 records returned" Then
      msgbox"Number Already exists in "
       Browser("Browser").Page("Page").Frame("toolbar").Link("Customer Search").Click
       Browser("Browser").Page("Page").Frame("workarea").WebEdit("v_value").Set GEOVoIPnumber
       Browser("Browser").Page("Page").Frame("workarea").WebButton("Search").Click
       strResultMsg= Browser("Browser").Page("Page").Frame("workarea_2").WebElement("Customer Record Search").GetROProperty("innertext")

End If
Loop Until strResultMsg="0 records returned"





And my innertext contains so much data just we need 1 OR record can i use regular expression in inner html .

Please have look and show the way for issue solution

Thanks,
Saisu
Reply


Messages In This Thread
RE:Hepl required to dyanamicallyidentified username and create theobject in objectrep - by Saisu - 11-25-2011, 04:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ActiveX component can't create object: 'JavaWindow' JayeshK 0 1,723 01-07-2021, 01:12 PM
Last Post: JayeshK
  Create Terminal as object dapeamel 0 3,144 02-16-2018, 07:09 PM
Last Post: dapeamel
  object spy not recognizing object.. pleaseeeee help Sonia Sadeque 3 3,440 12-22-2016, 02:42 PM
Last Post: ishan.mahajan@adp.com
  When trying to recognize the object in QTP, each object is recognized as “WinObject:S geetasarvadnya 2 3,765 10-28-2015, 12:34 PM
Last Post: vinod123
  Object identified despite having no information mjt 1 2,114 09-14-2015, 08:25 PM
Last Post: mjt

Forum Jump:


Users browsing this thread: 1 Guest(s)