Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the ability to pass in options to the Select.From method #106

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/Coypu/SelectFrom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,14 @@ internal SelectFrom(string option, Driver driver, TimingStrategy timingStrategy,
/// </summary>
/// <param name="locator">The text of the associated label element, the id or name</param>
/// <exception cref="T:Coypu.MissingHtmlException">Thrown if the element cannot be found</exception>
public void From(string locator)
public void From(string locator, Options localOptions = null)
{
timingStrategy.Synchronise(new Select(driver, scope, locator, option, disambiguationStrategy, options));
if (localOptions == null)
{
localOptions = options;
}

timingStrategy.Synchronise(new Select(driver, scope, locator, option, disambiguationStrategy, localOptions));
}

}
Expand Down