/// <summary> /// Initializes a new instance of the <see cref="WidgetImpl"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public WidgetImpl(IWebElement element, QxWebDriver webDriver) { Driver = webDriver; JsExecutor = Driver.JsExecutor; JsRunner = Driver.JsRunner; _contentElement = (IWebElement)JsRunner.RunScript("getContentElement", element); }
public static void Setup(TestContext testContext) { Driver = new QxWebDriver(Browser.IE); Cache.Clear(); WisejTests.Driver = Driver; #if !DEBUGJS Driver.Url = "http://localhost:7185/Default.html"; #else Driver.Url = "http://localhost:7185/Debug.html"; #endif }
public static void Setup(TestContext testContext) { var options = new OperaOptions(); options.BinaryLocation = OperaBinary; Driver = new QxWebDriver(new OperaDriver(options)); Driver.Manage().Window.Maximize(); Cache.Clear(); WisejTests.Driver = Driver; #if !DEBUGJS Driver.Url = "http://localhost:7185/Default.html"; #else Driver.Url = "http://localhost:7185/Debug.html"; #endif }
/// <summary> /// Initializes a new instance of the <see cref="List"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public List(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { }
/// <summary> /// Initializes a new instance of the <see cref="MenuButton"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="driver">The driver to use.</param> public MenuButton(IWebElement element, QxWebDriver driver) : base(element, driver) { }
/// <summary> /// Initializes a new instance of the <see cref="ComboBox"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public ComboBox(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { }
/// <summary> /// Initializes a new instance of the <see cref="AbstractScrollArea"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public AbstractScrollArea(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { }
// TODO: Nested menus /// <summary> /// Initializes a new instance of the <see cref="Menu"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public Menu(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { }
/// <summary> /// Initializes a new instance of the <see cref="Tree"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public Tree(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { }
/// <summary> /// Initializes a new instance of the <see cref="WidgetImpl"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public WidgetImpl(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { // workaround for https://github.com/selendroid/selendroid/issues/337 ContentElement = element; }
/// <summary> /// Initializes a new instance of the <see cref="ScrollPane"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public ScrollPane(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { }
/// <summary> /// Initializes a new instance of the <see cref="DefaultWidgetFactory"/> class. /// </summary> /// <param name="qxWebDriver">The wrapper QxWebDriver.</param> public DefaultWidgetFactory(QxWebDriver qxWebDriver) { Driver = qxWebDriver; }
/// <summary> /// Initializes a new instance of the <see cref="TabView"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public TabView(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { }
/// <summary> /// Initializes a new instance of the <see cref="Slider"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public Slider(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { }
/// <summary> /// Initializes a new instance of the <see cref="AbstractItem"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public AbstractItem(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { }
/// <summary> /// Initializes a new instance of the <see cref="BooleanForm"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public BooleanForm(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { }
/// <summary> /// Initializes a new instance of the <see cref="SelectBox"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="driver">The driver to use.</param> public SelectBox(IWebElement element, QxWebDriver driver) : base(element, driver) { }
/// <summary> /// Initializes a new instance of the <see cref="WidgetWithValueBase"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="webDriver">The web driver.</param> public WidgetWithValueBase(IWebElement element, QxWebDriver webDriver) : base(element, webDriver) { }