本文整理了Java中org.openqa.selenium.remote.RemoteWebDriver.findElementByCssSelector
方法的一些代码示例,展示了RemoteWebDriver.findElementByCssSelector
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RemoteWebDriver.findElementByCssSelector
方法的具体详情如下:
包路径:org.openqa.selenium.remote.RemoteWebDriver
类名称:RemoteWebDriver
方法名:findElementByCssSelector
暂无
代码示例来源:origin: appium/java-client
/**
* Finds a single element by CSS selector.
*
* @throws WebDriverException This method doesn't work against native app UI.
*/
public T findElementByCssSelector(String using) throws WebDriverException {
return (T) super.findElementByCssSelector(using);
}
代码示例来源:origin: io.appium/java-client
/**
* Finds a single element by CSS selector.
*
* @throws WebDriverException This method doesn't work against native app UI.
*/
public T findElementByCssSelector(String using) throws WebDriverException {
return (T) super.findElementByCssSelector(using);
}
代码示例来源:origin: com.saucelabs/sebuilder-interpreter
@Override
public WebElement find(String value, TestRun ctx) {
return ctx.driver.findElementByCssSelector(value);
}
@Override
代码示例来源:origin: org.mycore/selenium-utils
public WebElement findElementByCssSelector(String using) {
return delegate.findElementByCssSelector(using);
}
代码示例来源:origin: org.xwiki.platform/xwiki-platform-test-ui
@Override
public WebElement findElementByCssSelector(String using)
{
return this.scrollTo(this.wrappedDriver.findElementByCssSelector(using));
}
代码示例来源:origin: com.github.becauseQA/becauseQA-utils
@Override
public WebElement findElementByTagName(String using) {
if (getW3CStandardComplianceLevel() == 0) {
return findElement("tag name", using);
}
return findElementByCssSelector(using);
}
代码示例来源:origin: com.github.becauseQA/becauseQA-utils
@Override
public WebElement findElementByName(String using) {
if (getW3CStandardComplianceLevel() == 0) {
return findElement("name", using);
}
return findElementByCssSelector("*[name='" + using + "']");
}
代码示例来源:origin: com.github.becauseQA/becauseQA-utils
@Override
public WebElement findElementById(String using) {
if (getW3CStandardComplianceLevel() == 0) {
return findElement("id", using);
}
return findElementByCssSelector("#" + cssEscape(using));
}
代码示例来源:origin: com.github.becauseQA/becauseQA-utils
@Override
public WebElement findElementByClassName(String using) {
if (getW3CStandardComplianceLevel() == 0) {
return findElement("class name", using);
}
return findElementByCssSelector("." + cssEscape(using));
}
内容来源于网络,如有侵权,请联系作者删除!