本文整理汇总了C#中IWebDriver.FindDnnElementByXpath方法的典型用法代码示例。如果您正苦于以下问题:C# IWebDriver.FindDnnElementByXpath方法的具体用法?C# IWebDriver.FindDnnElementByXpath怎么用?C# IWebDriver.FindDnnElementByXpath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IWebDriver
的用法示例。
在下文中一共展示了IWebDriver.FindDnnElementByXpath方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddNewUserActionMenuItem
public static IWebElement AddNewUserActionMenuItem(IWebDriver driver)
{
var userMenuUserLink = driver.FindDnnElementByXpath(driver, "//*[@id='ControlActionMenu']/li[3]/a");
var builder = new Actions(driver);
var hoverOverUserMenuUserLink = builder.MoveToElement(userMenuUserLink).ClickAndHold();
//hoverOverUserMenuUserLink.Perform();
return driver.FindDnnElementByXpath(driver, "//*[@id='ControlActionMenu']/li[3]/ul/li[1]/a");
}
示例2: MessageTitle
public static IWebElement MessageTitle(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//*[@id='inbox']/li[1]/ul/li[3]/dl/dt/a"); }
示例3: Message
public static IWebElement Message(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//*[@id='inbox']/li[1]"); }
示例4: CancelButton
public static IWebElement CancelButton(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, ""); }
示例5: SendButton
public static IWebElement SendButton(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//*[@id='Body']/div[6]/div[3]/div/button[1]/span"); }
示例6: DescriptionTextbox
public static IWebElement DescriptionTextbox(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//textarea"); }
示例7: SendToTextBox
public static IWebElement SendToTextBox(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//*[@id='token-input-to']"); }
示例8: MessagesLink
public static IWebElement MessagesLink(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//*[@id='dnn_dnnUser_messageLink']/strong"); }
示例9: PasswordTextBox
public static IWebElement PasswordTextBox(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//*[@id='dnn_ctr_Login_Login_DNN_txtPassword']"); }
示例10: UserNameTextBox
public static IWebElement UserNameTextBox(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//*[@id='dnn_ctr_Login_Login_DNN_txtUsername']"); }
示例11: LoginLink
public static IWebElement LoginLink(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//*[@id='dnn_dnnLogin_enhancedLoginLink']"); }
示例12: RegisterLink
public static IWebElement RegisterLink(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//*[@id='dnn_dnnUser_enhancedRegisterLink']"); }
示例13: AddSketchMenuItem
public static IWebElement AddSketchMenuItem(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//*[@id='dnn_ctr520_Sketches_treeSketches_MainContextMenu_detached']/ul/li/a/span"); }
示例14: SelectedMessage
public static IWebElement SelectedMessage(IWebDriver driver) { return driver.FindDnnElementByXpath(driver, "//*[@id='replyMessage']"); }
示例15: LoginButton
public static IWebElement LoginButton(IWebDriver driver){return driver.FindDnnElementByXpath(driver, "//*[@id='dnn_ctr_Login_Login_DNN_cmdLogin']"); }