Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created November 13, 2016 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/61cdd04fe92be1311f96ecf82c8fd07d to your computer and use it in GitHub Desktop.
Save angelovstanton/61cdd04fe92be1311f96ecf82c8fd07d to your computer and use it in GitHub Desktop.
public void ConvertKilowattHoursToNewtonMeters(
double kWh,
Format format = CelsiusFahrenheitPage.Format.Decimal)
{
this.CelsiusInput.SendKeys(kWh.ToString());
if (format != CelsiusFahrenheitPage.Format.Decimal)
{
string formatText =
Enum.GetName(typeof(CelsiusFahrenheitPage.Format), format);
new SelectElement(this.Format).SelectByText(formatText);
}
this.driverWait.Until(drv => this.Answer != null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment