NdsBeisUi/src/test/java/com/northgateps/nds/beis/ui/view/javascript/sessionbleed/SessionBleedSteps.java
// using windows rather than tabs as support in Selenium exists
using windows rather than tabs as support in Selenium exists
using windows rather than tabs as support in Selenium exists
@Given("^I open a new tab directly to the login page$")
    public void i_open_a_new_tab_directly_to_the_login_page() throws Throwable {
        webDriver.findElement(By.tagName("body")).sendKeys(Keys.CONTROL,"n");
        List<String> handles = new ArrayList<String> (webDriver.getWindowHandles());
        webDriver.switchTo().window(handles.get(1));
        testHelper.openUrl(loginPageUrl);
    }
@ Given ( "^I open a new tab directly to the login page$" ) public void i_open_a_new_tab_directly_to_the_login_page ( ) throws Throwable { webDriver . findElement ( By . tagName ( "body" ) ) . sendKeys ( Keys . CONTROL , "n" ) ; List < String > handles = new ArrayList < String > ( webDriver . getWindowHandles ( ) ) ; webDriver . switchTo ( ) . window ( handles . get ( 1 ) ) ; testHelper . openUrl ( loginPageUrl ) ; }
using windows rather than tabs as support in Selenium exists
using windows rather than tabs as support in Selenium exists
// open a new one // switch to it // go direct to the login page