Forum Discussion

medha2016's avatar
medha2016
New Contributor
9 years ago
Solved

Select a particular file in windows explorer pop up

I am testing an web application. if user clicks on a button (import button : allows user to select file to import), windows explorer pops up for selecting file. if record this test, i cannot select ...
  • HKosova's avatar
    9 years ago

    Hi medha2016,

     

    You can use the OpenFile method to select a file by its path:

     

    // JScript
    Aliases.browser.dlgopen.OpenFile("C:\\MyFolder\\MyFile.txt");