com.pega.uiframework.profile.IEBrowserProfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pega-ui-testframework Show documentation
Show all versions of pega-ui-testframework Show documentation
Selenium/WebDriver Automation Framework
The newest version!
package com.pega.uiframework.profile;
import org.openqa.selenium.ie.InternetExplorerDriver;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* Created by mekak2 on 3/29/17.
*/
/**
* Create browser profile for internet explorer. Usually this is represented as
* Desired Capability in WebDriver where we can set different options for IE.
*/
public class IEBrowserProfile extends BrowserProfile
{
protected Map ieCapabilitiesMap;
public IEBrowserProfile()
{
ieCapabilitiesMap = new LinkedHashMap();
}
@Override
public Object createProfile()
{
return ieCapabilitiesMap;
}
public IEBrowserProfile enablePersistentHovering(boolean option)
{
ieCapabilitiesMap.put(InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING, option);
return this;
}
public IEBrowserProfile setRequireWindowFocus(boolean option)
{
ieCapabilitiesMap.put(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, option);
return this;
}
public IEBrowserProfile introduceFlakinessByIgnoringSecurityDomains(boolean option)
{
ieCapabilitiesMap.put(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, option);
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy