Tranquire.Selenium package - Galad/tranquire GitHub Wiki

The package Tranquire.Selenium contains actions and questions that wrap existing Selenium actions in IAction objects that you can combine, and add additional features.

Actions and questions can be used by adding the WebBrowser ability to the actor, using the CanUse method:

var driver = new ChromeDriver();
john = new Actor("john").CanUse(WebBrowser.With(driver));

Built-in actions

Built-in actions can be created via static factories in static classes. Here is the list of available actions:

  • Clear
  • Click
  • Enter
  • Hit
  • JsClick
  • Navigate
  • OpenContextMenu
  • Select
  • UsingIFrame
  • Wait

Wait actions

  • Wait.During. Waits during the specified amount of time.
  • Wait.Until(target). Perform wait actions conditioned on an action. Available conditions are:
    • IsVisible
    • IsNotVisible
    • IsPresent

Built-in questions

Just like actions, built-in questions can be created via static factories in static classes. Here is the list of available questions:

  • Classes
  • CssValue
  • Element
  • Enabled
  • HtmlAttribute
  • Page.Title
  • Page.Url
  • Page.Html
  • Presence
  • Selected
  • SelectedValue
  • SelectedValues
  • Text
  • Value
  • Visibility

More details here