org.openqa.grid.selenium.proxy
Class SeleniumRemoteProxy
java.lang.Object
org.openqa.grid.internal.RemoteProxy
org.openqa.grid.selenium.proxy.WebRemoteProxy
org.openqa.grid.selenium.proxy.SeleniumRemoteProxy
- All Implemented Interfaces:
- Comparable<RemoteProxy>, CommandListener, SelfHealingProxy, TimeoutListener
public class SeleniumRemoteProxy
- extends WebRemoteProxy
- implements CommandListener
Methods inherited from class org.openqa.grid.internal.RemoteProxy |
compareTo, equals, getConfig, getId, getMaxNumberOfConcurrentTestSessions, getNewInstance, getOriginalRegistrationRequest, getRegistry, getRemoteURL, getTestSlots, getTimeOut, getTotalUsed, hashCode, isBusy, setCapabilityHelper, setId, teardown, toString |
SeleniumRemoteProxy
public SeleniumRemoteProxy(RegistrationRequest request,
Registry registry)
beforeRelease
public void beforeRelease(TestSession session)
- Description copied from interface:
TimeoutListener
- Gives a chance to clean the resources on the remote when the session has
timed out.
Is executed before the session is released to the hub. If an exception is
thrown, the slot that was associated with the session is considered
corrupted and won't be released for future use.
You can check session.getInternalKey before timing out. internalkey==null
usually means the initial POST /session hasn't been completed yet.For
instance if you use web driver, that means the browser is in the process
of being started. During that state, you can't really clean the resources
properly.
- Specified by:
beforeRelease
in interface TimeoutListener
- Specified by:
beforeRelease
in class WebRemoteProxy
getCapabilityHelper
public CapabilityMatcher getCapabilityHelper()
- Overrides:
getCapabilityHelper
in class RemoteProxy
Copyright © 2011. All Rights Reserved.