當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。