mercredi 13 décembre 2017

Open selenuim firefox Driver by session id

I try to open old session by knowing the ID of that session, How can I reopen it.. Here code how I get the session Id, and I need to open that session from session ID that I have if it's possible

System.setProperty("webdriver.gecko.driver", "C:\\geckodriver.exe");
driver = new FirefoxDriver(new FirefoxProfile().);
System.out.println("Driver started");
SessionId session = ((FirefoxDriver)driver).getSessionId();
System.out.println("Session id: " + session.toString());

Aucun commentaire:

Enregistrer un commentaire