This is a migrated thread and some comments may be shown as answers.

Click on upload button using Selenium for Test Automation

1 Answer 249 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
aishwarya
Top achievements
Rank 1
aishwarya asked on 13 Nov 2018, 05:14 AM

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.

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 14 Nov 2018, 03:28 PM
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
 
Tags
General Discussions
Asked by
aishwarya
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or