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
#3
Not Solved
Hi Ravi,

Many thanks for your quick response
I skipped that from my requirement didn't try that

I stucked here please help me
When i searched with ID if it returns 0 records it has give amssg box and it's not giving properly ie on the page it showing 0 records however it is going to else loop -my logic should be if 0 records it has to exist loop and procced for the next steps if search returns 1 record take me to prevoius step ie customer search page ...

And each and every time it has to check the records count 0 or 1

and my code is here

Code:
Browser("Browser").Page("Page").Frame("workarea").WebEdit("v_value").Set "0125672348"

Browser("Browser").Page("Page").Frame("workarea").WebButton("Search").Click

after clicked on the page got the page and the page contains text like 0 records returned

so i write code like

Code:
if result="0 records returned" Then
msgbox"Please procced to build"
Else
result="1 records returned"
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 "03245678912"
End If

And my logic should be each and every time after click on search it has to check every time for records whether 0 or 1 and based on that it has exit the loop and has procced .....

Any clue help me

Thanks,
Saisu
Reply


Messages In This Thread
RE:Hepl required to dyanamicallyidentified username and create theobject in objectrep - by Saisu - 11-21-2011, 09:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ActiveX component can't create object: 'JavaWindow' JayeshK 0 1,729 01-07-2021, 01:12 PM
Last Post: JayeshK
  Create Terminal as object dapeamel 0 3,152 02-16-2018, 07:09 PM
Last Post: dapeamel
  object spy not recognizing object.. pleaseeeee help Sonia Sadeque 3 3,455 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,777 10-28-2015, 12:34 PM
Last Post: vinod123
  Object identified despite having no information mjt 1 2,128 09-14-2015, 08:25 PM
Last Post: mjt

Forum Jump:


Users browsing this thread: 1 Guest(s)