Forum Discussion

panka152's avatar
panka152
Contributor
13 years ago

object could not find

Hello,

I have attached input type file html for your reference.

I am working on web project where I have to fire click event on Browse button which I am not able to do.

I can do it by activating MSAA properties but I don't want to do so, kindly let me know if  there is any other workaround for it
  • AlexeyKryuchkov's avatar
    AlexeyKryuchkov
    SmartBear Alumni (Retired)
    Hi Pankaj,



    In my case, clicking the control's top right pixel always clicks the button:

    // JScript



    function Test1()

    {

      var File = Sys.Process("iexplore").Page("*").File(0);

      File.Click(File.Width - 1, 1);

    }
  • Hi,

    Thanks for the reply,

    I change the given code to VB script but still I could not get success, can you please give me more input on this.
  • AlexeyKryuchkov's avatar
    AlexeyKryuchkov
    SmartBear Alumni (Retired)
    Hi Pankaj,



    Could you please execute your test, pack the folder containing your project suite and share the archive here?
  • Hello Mike,



    Your solution is perfect problem was on my side,

     in VB script second line of code File.Click(file.width -1,1) was giving error,

    so I changed it to  File.Click(file.width (-1,1)) but still it was not working then,

    I added call to the code call File.Click(file.width -1,1) and it is working perfectly fine.

    Thanks for your kind help.