コード例 #1
0
ファイル: DropdawnMenu.cs プロジェクト: hatab2010/MosFairBot
        public static DropdawnMenu GetByLabel(IWebDriver driver, string label)
        {
            var pathStr = $"(//div[contains(@class, 'row')]/label[contains(text(), '{label}') " +
                          $"and parent::*[not(contains(@style, 'display: none'))]]/..)[parent::*[not(contains(@style, 'display: none'))]]";
            DropdawnMenu result = new DropdawnMenu(driver, pathStr);

            return(result);
        }
コード例 #2
0
ファイル: Extensions.cs プロジェクト: hatab2010/MosFairBot
 public static DropdawnMenu GetDropdownmenuByLabel(this IWebDriver driver, string label)
 {
     return(DropdawnMenu.GetByLabel(driver, label));
 }