Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Popup process
#1
Not Solved
Code:
Browser("Breaking news, Latest").Page("Breaking news, Latest").Sync
Browser("Breaking news, Latest").Navigate "http://www.rediff.com/"
wait(10)
Browser("Breaking news, Latest").Page("Breaking news, Latest").WebEdit("srchword").Set ""'I am doing a test on qtp"
Browser("Breaking news, Latest").Page("Breaking news, Latest").WebButton("Search").Click
Popup "Please enter search Keyword"
How I was Processed pop up?
Reply
#2
Not Solved
what do you mean by "How I was processed popup?" exactly what do you want ask here.
Please elaborate your post with a proper query.
do you want to say you are getting an unexpected popup? or you want a popup to display the string?

also the code seems to be incorrect.

Reply
#3
Not Solved
do you want to say you are getting an unexpected popup?
Thanks!
Reply
#4
Not Solved
what is this?

is this a reply to my last post?

Reply
#5
Not Solved
Quote:
A object not found in repository will never cause an error as QTP treats it at a level of syntax error in the script which does not fire any kind of recovery scenario and always are thrown by QTP. And i believe QTP will also not catch x = 2/0 which is a division by zero error as they are caught in VBScript.

QTP can only fire a recovery scenario if the statment involves a QTP Test object (excluding object not in OR)

Try this

X = 2 / 0 'Will not activate the scenario. Click skip for this

Browser("asdsdsdsad").close 'Will not activate the scenario...click skip for this

Browser("name:=asdhasdgsja").close 'this will activate the recovery scenario.



QTP is not firing Recovery Scenario on statement
Browser("name:=asdhasdgsja").close

1.Scenario
>> Test Run Error(Error - Any error)
>> Recovery (Function Call - RecoveryFunction1)
>> Post recovery option - Repeat current step and continue

2.My function(testing purpose)
Function RecoveryFunction1(Object)
Msgbox "Jitesh1"
End Function

It is not displaying message box "Jitesh1" for Browser("asdsdsdsad").close

Make sure i have attached correspond recovery scenario in the test.

Post Extras: Print Post Remind Me! Notify Moderator
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
MyBB how can i automatically click ok button in msgbox popup test 11 25,013 07-12-2022, 11:50 PM
Last Post: akash warke
  Close popup ad windows dustwynn 1 3,019 10-25-2016, 05:57 PM
Last Post: Ankur
  popup window takes a long time bistritapcv 4 3,620 04-17-2013, 09:35 PM
Last Post: bistritapcv
  QTP Opens a popup window but won't recognize the buttons in the window Blaster0007 4 7,949 07-20-2012, 12:03 AM
Last Post: sree.85
  Automating installation and uninstallation process ksrikanth2k9 0 2,563 04-02-2012, 12:08 PM
Last Post: ksrikanth2k9

Forum Jump:


Users browsing this thread: 3 Guest(s)