Click on upload button using Selenium for Test Automation

2 posts, 0 answers
  1. aishwarya
    aishwarya avatar
    1 posts
    Member since:
    Sep 2018

    Posted 12 Nov 2018 Link to this post

    Clicking on the upload button using click method or submit in Selenium Test Automation doesnt work.  Have tried to execute the jquery using click, but it doesnt work.  

     

        ((IJavaScriptExecutor)driver).ExecuteAsyncScript(String.Format("$('#attachments').click();"));  

     

    here #attachments is the id of the select/upload button.  I have tried to use ExecuteSyncScript too which doesnt work.

  2. Elena
    Admin
    Elena avatar
    1104 posts

    Posted 14 Nov 2018 Link to this post

    Hello Aishwarya,

    This public forum is of the Progress Testing Framework - I can be helpful about invoking jQuery events in it. If this is what you need please find additional details on the topic here

    Please elaborate more on the case if you need any assistance with the Progress Testing Framework. Thanks. 

    Regards,
    Elena Tsvetkova
    Progress Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top