本文整理汇总了Java中org.openqa.selenium.html5.LocationContext类的典型用法代码示例。如果您正苦于以下问题:Java LocationContext类的具体用法?Java LocationContext怎么用?Java LocationContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LocationContext类属于org.openqa.selenium.html5包,在下文中一共展示了LocationContext类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setLocation
import org.openqa.selenium.html5.LocationContext; //导入依赖的package包/类
@Override
public void setLocation(Location arg0) {
((LocationContext) super.getWrappedDriver()).setLocation(arg0);
}
开发者ID:Cognifide,项目名称:bobcat,代码行数:5,代码来源:WebDriverWrapper.java
示例2: getDescription
import org.openqa.selenium.html5.LocationContext; //导入依赖的package包/类
private DesiredCapabilities getDescription(WebDriver instance, Capabilities capabilities) {
DesiredCapabilities caps = new DesiredCapabilities(capabilities.asMap());
caps.setJavascriptEnabled(instance instanceof JavascriptExecutor);
if (instance instanceof TakesScreenshot) {
caps.setCapability(CapabilityType.TAKES_SCREENSHOT, true);
}
if (instance instanceof LocationContext) {
caps.setCapability(CapabilityType.SUPPORTS_LOCATION_CONTEXT, true);
}
if (instance instanceof ApplicationCache) {
caps.setCapability(CapabilityType.SUPPORTS_APPLICATION_CACHE, true);
}
if (instance instanceof NetworkConnection) {
caps.setCapability(CapabilityType.SUPPORTS_NETWORK_CONNECTION, true);
}
if (instance instanceof WebStorage) {
caps.setCapability(CapabilityType.SUPPORTS_WEB_STORAGE, true);
}
if (instance instanceof FindsByCssSelector) {
caps.setCapability(CapabilityType.SUPPORTS_FINDING_BY_CSS, true);
}
if (instance instanceof Rotatable) {
caps.setCapability(CapabilityType.ROTATABLE, true);
}
if (instance instanceof HasTouchScreen) {
caps.setCapability(CapabilityType.HAS_TOUCHSCREEN, true);
}
return caps;
}
开发者ID:alexkogon,项目名称:grid-refactor-remote-server,代码行数:30,代码来源:DefaultSession.java
示例3: location
import org.openqa.selenium.html5.LocationContext; //导入依赖的package包/类
public static LocationContext location( WebDriver driver )
{
return null;
}
开发者ID:hemano,项目名称:cucumber-framework-java,代码行数:5,代码来源:WebDriverUtils.java
示例4: location
import org.openqa.selenium.html5.LocationContext; //导入依赖的package包/类
@Override
public Location location() {
return ((LocationContext) super.getWrappedDriver()).location();
}
开发者ID:Cognifide,项目名称:bobcat,代码行数:5,代码来源:WebDriverWrapper.java
示例5: getLocationContext
import org.openqa.selenium.html5.LocationContext; //导入依赖的package包/类
static LocationContext getLocationContext(WebDriver driver) {
return convert(driver, LocationContext.class, CapabilityType.SUPPORTS_LOCATION_CONTEXT,
RemoteLocationContext.class);
}
开发者ID:alexkogon,项目名称:grid-refactor-remote-server,代码行数:5,代码来源:Utils.java
注:本文中的org.openqa.selenium.html5.LocationContext类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论