Quality Testing

Quality is delighting customers

In QTP how to you make adjustments to the script if the input field is bloacked for user input and can only be set by browsing for a file and setting the path

In QTP how to you make adjustments to the script if the input field is bloacked for user input and can only be set by browsing for a file and setting the path.

I faced this issue while i was browsing for a File name field that has Browse button.
The browse button and the input field act the same way when clicked.
Clicking on Browse opens a new window and user selects an image file.
But all these actions are not captured while recording. The path is set.
For.e.g

Browser("Company - 6.5 Release QA").Page("Company - 6.5 Release QA_3").Frame("main_frame_8").WebFile("userfile").Set "C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Blue hills.jpg"

Can anyone help me to have a workaround for this kind of situation

Views: 125

Reply to This

Replies to This Discussion

please check the technology of the application.

the button may be build with differnt technology.

so u can use virual object wizard to recognise that button.
Check whether the frame name values getting changed on while recording,if means set it by descriptive programming, else close the qtp and open record as new
Hello Friends a food for thought!.
Can Getting object of MSComDlg.CommonDialog help?

I guess so...
I tried to re-record but the result was same. Then i used descriptive programming to manually click the browse field and select the file and set the path. Thanks friends for all the replies.

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2022   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service