How do you attach File on a page?

Answer Posted / anupam

There are two ways to attach file:
1. Using sendkeys command and pass the file path parameter.
2. Using third party tool AutoIT . There are some prerequisite configuration and import the exe file into the project and call executable file by process builder will work perfectly.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does you use mouse over actions

919


How to clear the text in the text box using selenium webdriver?

465


Can we use selenium grid for performance testing?

457


How many types of locators are there in selenium?

479


What are the different Selenium components?

514






How to do drag and drop in selenium?

519


How to scroll down to a particular element?

3156


Explain how you can use recovery scenario with selenium?

469


What are the annotations used in testng?

503


Is there a way for me to know all available options when I start selenium server?

480


What is the difference between assert and verify in selenium?

485


What is a hub in selenium grid?

548


What are the ways to refresh a browser using selenium webdriver?

467


What is the use of get options () method?

523


What are some of the different ways to find an element using selenium as a tool?

473