You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RemoteDriverProtocol class scans for the $useragent String here (in RemoteDriverProtocol):
Entry<String, Object> entry = iter.next();
Object val = entry.getValue();
// substitute variable $useragent for the real value
if (val instanceof String
&& "$useragent".equalsIgnoreCase(val.toString())) {
val = userAgentString;
}
capabilities.setCapability(entry.getKey(), entry.getValue());
However, the changed value is never actually used, instead the orginal value in the entry is used.
Related, I'm not sure this is the right way to set the user-agent for Chrome.
cheers and thanks,
Gerben
The text was updated successfully, but these errors were encountered:
GerbenKD
changed the title
RemoteDriverProtocol does not set user agent correctly
RemoteDriverProtocol does not set user agent correctly [Bug]
Jun 26, 2019
GerbenKD
changed the title
RemoteDriverProtocol does not set user agent correctly [Bug]
RemoteDriverProtocol does not set user agent correctly
Jun 26, 2019
GerbenKD
changed the title
RemoteDriverProtocol does not set user agent correctly
[Bug] RemoteDriverProtocol does not set user agent correctly
Jun 26, 2019
The RemoteDriverProtocol class scans for the
$useragent
String here (in RemoteDriverProtocol):However, the changed value is never actually used, instead the orginal value in the entry is used.
Related, I'm not sure this is the right way to set the user-agent for Chrome.
cheers and thanks,
Gerben
The text was updated successfully, but these errors were encountered: