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
{{ message }}
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
THis works:
package org.openqa.selenium.htmlunit;
This fixes the issue - but I would perfer it to come back into HtmlUnitDriver
public class ExtendedHtmlUnitDriver extends HtmlUnitDriver
{
public ExtendedHtmlUnitDriver(boolean enableJavascript)
{
super(enableJavascript);
}
public void setHeader(String name, String value)
{
this.getWebClient().addRequestHeader(name, value);
}
}
Usage:
ExtendedHtmlUnitDriver driver = new ExtendedHtmlUnitDriver(true);
driver.setHeader("cac", "2200009990");
Reported by laptop.eadie on 2011-09-15 05:08:36
The text was updated successfully, but these errors were encountered:
Originally reported on Google Code with ID 2462
Reported by
laptop.eadie
on 2011-09-15 05:08:36The text was updated successfully, but these errors were encountered: