Package org.openqa.selenium.remote

Examples of org.openqa.selenium.remote.SessionId


        updateSessionIdIfKnown();
        setAnnotatedResult(testMethod);
    }

    private void updateSessionIdIfKnown() {
        SessionId sessionId = webdriverManager.getSessionId();
        if (sessionId != null) {
            getCurrentTestOutcome().setSessionId(sessionId.toString());
        }
    }
View Full Code Here


    WebdriverManager webdriverManager;

    @Test
    public void should_record_remote_session_id() {

        when(webdriverManager.getSessionId()).thenReturn(new SessionId("SESSION-ID"));
        BaseStepListener stepListener = new BaseStepListener(outputDirectory, webdriverManager);
        net.thucydides.core.model.Story story = net.thucydides.core.model.Story.from(MyStory.class);
        stepListener.testSuiteStarted(story);
        stepListener.testStarted("the app should work");
        assertThat(stepListener.getCurrentTestOutcome().getSessionId() , is("SESSION-ID"));
View Full Code Here

TOP

Related Classes of org.openqa.selenium.remote.SessionId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.