From: Ahmed A. <asa...@ya...> - 2015-11-09 05:07:43
|
Hi Teryl, Since real browsers have this method, HtmlUnit should follow. Thanks for reporting, it has been committed to SVN. Please use latest snapshot or build [1]. Thanks,Ahmed From: Teryl Taylor <ter...@gm...> To: htm...@li... Sent: Sunday, November 8, 2015 10:44 PM Subject: [Htmlunit-user] HTMLDocument missing hasFocus? Hi Everyone, I'm mining an amazon page, and I get the following error in the log: SEVERE: Error logged: {"m":"TypeError: Cannot find function hasFocus in object [object HTMLDocument]. (http://z-ecx.images-amazon.com/images/G/01/vap/video/airy2/prod/2.0.1283.0/js/airy.skin._V289604501_.js#5318)","f":"http://www.amazon.com/Etekcity-Digital-Hanging-Postal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt","l":5318,"c":"0","s":[],"t":5707,"csm":"v6 onerror callee","pageURL":"http://www.amazon.com/Etekcity-Digital-Hanging-Postal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt","logLevel":"FATAL"} ({m:TypeError: Cannot find function hasFocus in object [object HTMLDocument]. (http://z-ecx.images-amazon.com/images/G/01/vap/video/airy2/prod/2.0.1283.0/js/airy.skin._V289604501_.js#5318), f:"http://www.amazon.com/Etekcity-Digital-Hanging-Postal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt", l:5318, c:0, s:[], t:5707.0, name:null, type:null, csm:v6 onerror callee, pageURL:"http://www.amazon.com/Etekcity-Digital-Hanging-Postal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt", logLevel:"FATAL"}) Is this functionality just missing from HTMLDocument? or is it non-standard? Best, Teryl |