WinRunner version : 8.2
Type of Application : Web Application.
Browser : IE 6
On a web page, there is an editable text field where File Browse button is located next to it. Winrunner is identifying the text field as object instead of identifying it as a edit field.
Name of the edit field is BF_docLocation
When i am clicking on the Browse button it is generating the code as below
web_event(" ", "click", 155, 12);
but if the X and Y position changes then script gets failed.
And also instead of selecting the file from open dialog box by clicking Browse button when i tried entering the file path into that edit field, it is not showing any code while recording.
How to handle the above scenario or how to select a document?
with it being a control that is not recognized by default (meaning your development crew has put a none standard control there - as a picture represetning a button).
You will have to learn it as some object, or code around the ability to click in that region. With it being corrdinate based, there is as you have seen, a major issue with the control moving, but if the control is moving that much is the app really ready and stable enough for automation?
Welcome to the world of custom controls and interaction with them.
Insanity: doing the same thing over and over again and expecting different results