DriverSession
clearListeners
â
This method will clear all the listeners for the session.
import static io.github.boykaframework.manager.ParallelSession.getSession;
. . .
getSession ().clearListeners ();
clearSharedData
â
This method will clear all the shared data for the session.
import static io.github.boykaframework.manager.ParallelSession.getSession;
. . .
getSession ().clearSharedData ();
getApiSetting
â
This method gets the API settings for the current session.
import static io.github.boykaframework.manager.ParallelSession.getSession;
. . .
var apiSetting = getSession ().getApiSetting ();
getListener (listenerType)
â
This method gets the Boyka listener for the given listener type.
Important!!
This method is for internal use only.
getMobileSetting
â
This method gets the Mobile settings for the current session.
import static io.github.boykaframework.manager.ParallelSession.getSession;
. . .
var mobileSetting = getSession ().getMobileSetting ();
getSharedData (key)
â
This method gets the shared data for the current session.
import static io.github.boykaframework.manager.ParallelSession.getSession;
. . .
var mobileSetting = getSession ().getSharedData ("sample.key");
getWebSetting
â
This method gets the Web settings for the current session.
import static io.github.boykaframework.manager.ParallelSession.getSession;
. . .
var webSetting = getSession ().getWebSetting ();
removeSharedData (key)
â
This method removes the shared data for a particular key for the current session.
import static io.github.boykaframework.manager.ParallelSession.getSession;
. . .
var value = getSession ().removeSharedData ("some.key");
setSharedData (key, value)
â
This method sets the shared data for a particular key for the current session.
import static io.github.boykaframework.manager.ParallelSession.getSession;
. . .
getSession ().setSharedData ("some.key", "some value");