JamesD
JamesD

Reputation: 719

How do I test multiple browsers in Selenium WebDriver

We are using Selenium WebDriver and Cucumber for our Acceptance testing. We have a collection of Features that we want to test, each with multiple scenarios, here is an example:

  Scenario Outline: Unsuccessful login with W3ID credentials
    Given I navigate to the Bluecost Spreadsheet Upload Web url and receive a login screen 
    When I login using invalid credentials: "<user_id>" and "<user_pwd>"
    Then the W3ID will reject my credentials, produce an error message and I will not proceed to BCSUW

    Examples: 
      | user_id   | user_pwd |
      | baduserid | badpass  |

I want to test each one of these Scenarios with each browser that we need to support: FireFox, Edge, and Chrome. How do I run those Features and Scenarios for each one of those 3 browsers?

Upvotes: 0

Views: 714

Answers (1)

JamesD
JamesD

Reputation: 719

I've read the post link above and one of the answers suits me: I'm going to execute all the Features/Scenarios for every browser under test. This may mean running the test 3 times through: Firefox, Chrome and Edge.

Thanks for the link PJAutomator

Upvotes: 1

Related Questions