1

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
  • I believe your question has already been answered here Commented Jun 22, 2017 at 22:11

1 Answer 1

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.