I am new to Selenium Webdriver. I need to automate test cases where i'm giving input from a file for a field. how do i do that?
1 Answer
If you are wanting to create automated test cases using selenium-webdriver for an application, manage a xml configuration file. Using xml configuration files you can manage you test cases easily. Example configuration :
<test browser-name="firefox" domain="...">
<!-- browser parameters -->
<url-config>
<!-- Test case..1 -->
<!-- Test case..2 -->
<!-- Test case..n -->
</url-config>
<forms>
<!-- form 1 -->
<!-- form 2 -->
<!-- form n -->
</forms>
</test>
You can also include .xsd for validate your driver settings.
Hope this gives you some idea.