示例#1
0
        /// <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);
        }
示例#2
0
        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
        }
示例#3
0
 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
 }
示例#4
0
 /// <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)
 {
 }
示例#5
0
 /// <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)
 {
 }
示例#6
0
 /// <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)
 {
 }
示例#7
0
 /// <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)
 {
 }
示例#8
0
        // 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)
        {
        }
示例#9
0
 /// <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)
 {
 }
示例#10
0
 /// <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;
 }
示例#11
0
 /// <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)
 {
 }
示例#12
0
 /// <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;
 }
示例#13
0
 /// <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)
 {
 }
示例#14
0
 /// <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)
 {
 }
示例#15
0
 /// <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)
 {
 }
示例#16
0
 /// <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)
 {
 }
示例#17
0
 /// <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)
 {
 }
示例#18
0
 /// <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)
 {
 }