12-06-2010, 06:55 PM
(This post was last modified: 12-07-2010, 11:33 PM by nistalaramesh.)
Hi I am using QTP-11, I saved all properties in the Repository.
Now I have written code for Attaching a file in the application.
1. If i click on Attach Button in my web page i will get another page.
2. In the child page if i click on Select Button Windows File Open box will be opened.
Main Problem is that QTP not clicking on 2nd page so that the Windows Open dialog box is not getting opened.
My Script:
I Got some help in the forum to attach file in the Open dialog.
But QTP not clicking on Select Button. If i click on the select button then my script is running properly.
I am attaching the screen shot here.
Please Help me
Now I have written code for Attaching a file in the application.
1. If i click on Attach Button in my web page i will get another page.
2. In the child page if i click on Select Button Windows File Open box will be opened.
Main Problem is that QTP not clicking on 2nd page so that the Windows Open dialog box is not getting opened.
My Script:
Code:
Dim CurrentPage
Browser("xxx").Page("xxx").Frame("contents_2").WebButton("Attach").Click
This line i added for a solution but it is not working.
Set CurrentPage = Browser("AutoDCR").Window("Attachments -- Web Page").Page("Attachments")
Browser("xxx").Window("Attachments -- Web Page").Page("Attachments").WebButton("Select").Click
I Got some help in the forum to attach file in the Open dialog.
But QTP not clicking on Select Button. If i click on the select button then my script is running properly.
I am attaching the screen shot here.
Please Help me