com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError -> works fine with chrome

560 views
Skip to first unread message

karre....@gmail.com

unread,
May 3, 2017, 5:58:57 PM5/3/17
to Selenium Users
Selenium Version: 
selenium-server-standalone-3.3.1.jar ,    IDE:-  Eclipse Mars Release (4.5.0) ,
Browser:  htmlunit (htmlunit-driver-2.26-with-dependencies.jar)

## Expected Behavior -
 throwing  error with htmlunit works fine with firefox and chrome.


## Actual Behavior -
May 03, 2017 3:57:49 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError
SEVERE: runtimeError: message=[**An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: :x).] sourceName=[https://accounts.logi.com/lib/jquery/jquery-3.1.0.min.js] line=[2] lineSource=[null] lineOffset=[0]**
RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
Rhino runtime detected object com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function takeRecords in object [object MutationObserver]. (https://static.xx.fbcdn.net/rsrc.php/v3/yR/r/Rn9LYVcZI-C.js#69) of class com.gargoylesoftware.htmlunit.ScriptException where it expected String, Number, Boolean or Scriptable instance. Please check your code for missing Context.javaToJS() call.
May 03, 2017 3:58:18 PM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter runtimeError
SEVERE: runtimeError: message=[Java class "com.gargoylesoftware.htmlunit.ScriptException" has no public instance field or method named "message".] sourceName=[https://static.xx.fbcdn.net/rsrc.php/v3/yR/r/Rn9LYVcZI-C.js] line=[46] lineSource=[null] lineOffset=[0]


## Steps to reproduce -

WebDriver driver= new HtmlUnitDriver(true);
java.util.logging.Logger.getLogger("com.gargoylesoftware.htmlunit").setLevel(java.util.logging.Level.OFF);
java.util.logging.Logger.getLogger("org.apache.http").setLevel(java.util.logging.Level.OFF);
String url="https://home.myharmony.com/oauth2/authorize?client_id=xxxx&client_secret=XXXX KQ&scope=remote&response_type=code&redirect_uri=https://www.getpostman.com/oauth2/callback&logitech_domain=svcs.myharmony.com";
driver.get(url); 

cursor reaches at this point this throws above Error.

karre....@gmail.com

unread,
May 4, 2017, 4:34:53 AM5/4/17
to Selenium Users
Any help on this please.

karre....@gmail.com

unread,
May 11, 2017, 9:04:50 AM5/11/17
to Selenium Users

I am getting the following error, Please find the code below, 

Update the selenium jar files with 3.4.0 and html selenium htmlunit 2.9.0 jar file.

Please let me know any one as suggestion on this


SEVERE: runtimeError: message=[An invalid or illegal selector was specified (selector: '*,:x' error: Invalid selector: :x).] sourceName=[https://www.mailinator.com/js/jquery-1.11.1.min.js] line=[2] lineSource=[null] lineOffset=[0]

May 11, 2017 6:29:22 PM com.gargoylesoftware.htmlunit.javascript.DefaultJavaScriptErrorListener loadScriptError

SEVERE: Error loading JavaScript from [https://connect.facebook.net/signals/config/0?v=2.7.7].



                driver.navigate().to("https://www.mailinator.com/");  ------  When control hits i am seeing the above error.

wait.until(ExpectedConditions.visibilityOfElementLocated(By.id("inboxfield")));

String mailinatoremail= hmap.get("mailinatoremail");

driver.findElement(By.id("inboxfield")).sendKeys(mailinatoremail);

driver.findElement(By.className("input-group-btn")).click();

wait.until(ExpectedConditions.visibilityOfElementLocated(By.className("someviewport")));

List<WebElement> allElements=driver.findElements(By.className("someviewport"));

wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//div[contains(@id,'row_public')]")));

driver.findElement(By.xpath("//div[contains(@id,'row_public')]")).click();







On Thursday, May 4, 2017 at 3:28:57 AM UTC+5:30, karre....@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages