Skip to end of metadata
Go to start of metadata

Graphene stores WebDriver instance in the thread-local context, distinguished by browser qualifier.

It enables to write framework-like features where context of the browser is injected just when you need it:

Accessing

To access a browser session, you can obtain proxy of the context,

which is proxy object which delegates the methods you call on an instance which is at the time available in the context of current thread.

The most generic form is obtaining instance of WebDriver:

The Default.class representas a browser's qualifier - in this case we are requesting default browser (when no qualifier is specified on Drone instances). Read more in Parallel browsers.

You can also use alternative methods, most notably the method which provides proxy object implementing given extension interfaces:

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.