I have searched and have not found a clear (enough for me) answer to after using Scenario Outlines to specify multiple URLs I'd like to navigate to using Selenium Webdriver and C#. How do I setup the C# to handle each URL? This is currently my steps:
Scenario Outline: Search
Given I Navigate to <URL>
Examples:
| URL |
| https://aaa.com/foo/bar/uniqueID1/en-us |
| https://aaa.com/foo/bar/uniqueID2/en-us |
| https://aaa.com/foo/bar/uniqueID3/en-us |
And this is my Step Def:
[Binding]
public class Search
{
[Given(@"I Navigate to
https://aaa\.com/foo/bar/(.*)/en-us")]
public void GivenINavigateToHttpsAaa_FooBarEn_Us(int p0)
{
driver.url("https://aaa.com/foo/bar/(.*)/en-us");
}
However, running this doesn't pull in each scenario from the outline as I expected. Where am I going wrong with my Step Definition?