当前位置: 首页>>代码示例>>C#>>正文


C# SeleniumEmulation.ElementFinder类代码示例

本文整理汇总了C#中Selenium.Internal.SeleniumEmulation.ElementFinder的典型用法代码示例。如果您正苦于以下问题:C# ElementFinder类的具体用法?C# ElementFinder怎么用?C# ElementFinder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ElementFinder类属于Selenium.Internal.SeleniumEmulation命名空间,在下文中一共展示了ElementFinder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Type

 /// <summary>
 /// Initializes a new instance of the <see cref="Type"/> class.
 /// </summary>
 /// <param name="alertOverride">An <see cref="AlertOverride"/> object used to handle JavaScript alerts.</param>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 /// <param name="keyState">A <see cref="KeyState"/> object tracking the state of modifier keys.</param>
 public Type(AlertOverride alertOverride, ElementFinder elementFinder, KeyState keyState)
 {
     this.alertOverride = alertOverride;
     this.finder = elementFinder;
     this.state = keyState;
     this.type = "return (" + JavaScriptLibrary.GetSeleniumScript("type.js") + ").apply(null, arguments);";
 }
开发者ID:Rameshnathan,项目名称:selenium,代码行数:13,代码来源:Type.cs

示例2: SeleniumSelect

        /// <summary>
        /// Initializes a new instance of the <see cref="SeleniumSelect"/> class.
        /// </summary>
        /// <param name="finder">An <see cref="ElementFinder"/> used in finding options.</param>
        /// <param name="driver">An <see cref="IWebDriver"/> used to drive the browser.</param>
        /// <param name="locator">A locator used to find options.</param>
        public SeleniumSelect(ElementFinder finder, IWebDriver driver, string locator)
        {
            this.driver = driver;

            this.findOption = "return (" + JavaScriptLibrary.GetSeleniumScript("findOption.js") + ").apply(null, arguments)";

            this.select = finder.FindElement(driver, locator);
            if (this.select.TagName.ToLowerInvariant() != "select")
            {
                throw new SeleniumException("Element is not a select element: " + locator);
            }
        }
开发者ID:draculavlad,项目名称:selenium,代码行数:18,代码来源:SeleniumSelect.cs

示例3: CTM_Test

        public CTM_Test()
        {
            InitializeComponent();

            // init local variables
            this.testRunId = 0;
            this.testRunBrowserId = 0;
            this.testDownloadUrl = "";
            this.testBrowser = null;
            this.haltOnError = false;

            this.testHadError = false;

            this.testVariables = new Selenium_Test_Suite_Variables();

            this.seleneseMethods = new Dictionary<String, SeleneseCommand>();
            this.elementFinder = new ElementFinder();
            this.select = new SeleniumOptionSelector(this.elementFinder);

            this.keyState = new KeyState();

            this.tests = new ArrayList();
            this.testCommands = new ArrayList();
        }
开发者ID:zerodiv,项目名称:CTM-Windows-Agent,代码行数:24,代码来源:CTM_Test.cs

示例4: IsOrdered

 /// <summary>
 /// Initializes a new instance of the <see cref="IsOrdered"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public IsOrdered(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
开发者ID:RanchoLi,项目名称:selenium,代码行数:8,代码来源:IsOrdered.cs

示例5: AttachFile

 /// <summary>
 /// Initializes a new instance of the <see cref="AttachFile"/> class.
 /// </summary>
 /// <param name="finder">An <see cref="ElementFinder"/> used in finding the element.</param>
 public AttachFile(ElementFinder finder)
 {
     this.finder = finder;
 }
开发者ID:Rameshnathan,项目名称:selenium,代码行数:8,代码来源:AttachFile.cs

示例6: AddLocationStrategy

 /// <summary>
 /// Initializes a new instance of the <see cref="AddLocationStrategy"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> object used to locate elements.</param>
 public AddLocationStrategy(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
开发者ID:v4viveksharma90,项目名称:selenium,代码行数:8,代码来源:AddLocationStrategy.cs

示例7: IsVisible

 public IsVisible(ElementFinder finder)
 {
     this.finder = finder;
 }
开发者ID:zerodiv,项目名称:CTM-Windows-Agent,代码行数:4,代码来源:IsVisible.cs

示例8: GetElementPositionLeft

 public GetElementPositionLeft(ElementFinder elementFinder)
 {
     finder = elementFinder;
 }
开发者ID:hugs,项目名称:selenium,代码行数:4,代码来源:GetElementPositionLeft.cs

示例9: KeyEvent

 /// <summary>
 /// Initializes a new instance of the <see cref="KeyEvent"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 /// <param name="state">A <see cref="KeyState"/> object defining the state of modifier keys.</param>
 /// <param name="eventName">The name of the event to send.</param>
 public KeyEvent(ElementFinder elementFinder, KeyState state, string eventName)
 {
     this.finder = elementFinder;
     this.keyState = state;
     this.eventName = eventName;
 }
开发者ID:kaushik9k,项目名称:Selenium2,代码行数:12,代码来源:KeyEvent.cs

示例10: Highlight

 /// <summary>
 /// Initializes a new instance of the <see cref="Highlight"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public Highlight(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
开发者ID:kaushik9k,项目名称:Selenium2,代码行数:8,代码来源:Highlight.cs

示例11: GetElementIndex

 public GetElementIndex(ElementFinder elementFinder)
 {
     finder = elementFinder;
 }
开发者ID:hugs,项目名称:selenium,代码行数:4,代码来源:GetElementIndex.cs

示例12: IsElementPresent

 public IsElementPresent(ElementFinder finder)
 {
     this.finder = finder;
 }
开发者ID:hugs,项目名称:selenium,代码行数:4,代码来源:IsElementPresent.cs

示例13: IsEditable

 /// <summary>
 /// Initializes a new instance of the <see cref="IsEditable"/> class.
 /// </summary>
 /// <param name="elementFinder">An <see cref="ElementFinder"/> used to find the element on which to execute the command.</param>
 public IsEditable(ElementFinder elementFinder)
 {
     this.finder = elementFinder;
 }
开发者ID:kaushik9k,项目名称:Selenium2,代码行数:8,代码来源:IsEditable.cs

示例14: Click

 public Click(ElementFinder finder)
 {
     this.finder = finder;
 }
开发者ID:hugs,项目名称:selenium,代码行数:4,代码来源:Click.cs

示例15: SelectOption

 /// <summary>
 /// Initializes a new instance of the <see cref="SelectOption"/> class.
 /// </summary>
 /// <param name="alertOverride">An <see cref="AlertOverride"/> object used to handle JavaScript alerts.</param>
 /// <param name="finder">The <see cref="ElementFinder"/> used in selecting the option.</param>
 public SelectOption(AlertOverride alertOverride, ElementFinder finder)
 {
     this.finder = finder;
     this.alertOverride = alertOverride;
 }
开发者ID:kaushik9k,项目名称:Selenium2,代码行数:10,代码来源:SelectOption.cs


注:本文中的Selenium.Internal.SeleniumEmulation.ElementFinder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。