[prev in list] [next in list] [prev in thread] [next in thread] 

List:       htmlunit-user
Subject:    Re: [Htmlunit-user] HTMLDocument missing hasFocus?
From:       Ahmed Ashour <asashour () yahoo ! com>
Date:       2015-11-09 5:07:35
Message-ID: 651225106.1923415.1447045655745.JavaMail.yahoo () mail ! yahoo ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 <teryl.taylor@gmail.com>
 To: htmlunit-user@lists.sourceforge.net 
 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.sk \
in._V289604501_.js#5318)","f":"http://www.amazon.com/Etekcity-Digital-Hanging-Postal-L \
uggage/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   


[Attachment #5 (text/html)]

<html><head></head><body><div style="color:#000; background-color:#fff; \
font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, \
sans-serif;font-size:16px"><div id="yui_3_16_0_1_1447010105292_7956"><span>Hi \
Teryl,</span></div><div \
id="yui_3_16_0_1_1447010105292_7935"><span><br></span></div><div \
id="yui_3_16_0_1_1447010105292_7934">Since real browsers have this method, HtmlUnit \
should follow.</div><div id="yui_3_16_0_1_1447010105292_7933"><br></div><div \
id="yui_3_16_0_1_1447010105292_7932">Thanks for reporting, it has been committed to \
SVN.</div><div id="yui_3_16_0_1_1447010105292_7931"><br></div><div \
id="yui_3_16_0_1_1447010105292_7930">Please use latest snapshot or build \
[1].</div><div id="yui_3_16_0_1_1447010105292_7929"><br></div><div \
id="yui_3_16_0_1_1447010105292_7960">Thanks,</div><div \
id="yui_3_16_0_1_1447010105292_7961">Ahmed</div>  <div style="font-family: \
HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; \
font-size: 16px;" id="yui_3_16_0_1_1447010105292_7887"> <div style="font-family: \
HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; \
font-size: 16px;" id="yui_3_16_0_1_1447010105292_7886"> <div dir="ltr" \
id="yui_3_16_0_1_1447010105292_7885"> <hr size="1" \
id="yui_3_16_0_1_1447010105292_7884">  <font size="2" face="Arial" \
id="yui_3_16_0_1_1447010105292_7928"> <b><span \
style="font-weight:bold;">From:</span></b> Teryl Taylor \
&lt;teryl.taylor@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> \
htmlunit-user@lists.sourceforge.net <br> <b><span style="font-weight: \
bold;">Sent:</span></b> Sunday, November 8, 2015 10:44 PM<br> <b><span \
style="font-weight: bold;">Subject:</span></b> [Htmlunit-user] HTMLDocument missing \
hasFocus?<br> </font> </div> <div class="y_msg_container" \
id="yui_3_16_0_1_1447010105292_7888"><br><div id="yiv1333148573"><div dir="ltr" \
id="yui_3_16_0_1_1447010105292_7962">Hi Everyone,<div><br></div><div>I'm mining an \
amazon page, and I get the following error in the log:</div><div \
id="yui_3_16_0_1_1447010105292_7963"><br></div><div \
id="yui_3_16_0_1_1447010105292_7964">SEVERE: Error logged: {"m":"TypeError: Cannot \
find function hasFocus in object [object HTMLDocument]. (<a rel="nofollow" \
target="_blank" href="http://z-ecx.images-amazon.com/images/G/01/vap/video/airy2/prod/2.0.1283.0/js/airy.skin._V289604501_.js#5318" \
id="yui_3_16_0_1_1447010105292_7965">http://z-ecx.images-amazon.com/images/G/01/vap/video/airy2/prod/2.0.1283.0/js/airy.skin._V289604501_.js#5318</a>)","f":"<a \
rel="nofollow" target="_blank" \
href="http://www.amazon.com/Etekcity-Digital-Hanging-Postal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt" \
id="yui_3_16_0_1_1447010105292_7966">http://www.amazon.com/Etekcity-Digital-Hanging-Po \
stal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt</a>","l":5318,"c":"0","s":[],"t":5707,"csm":"v6 \
onerror callee","pageURL":"<a rel="nofollow" target="_blank" \
href="http://www.amazon.com/Etekcity-Digital-Hanging-Postal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt" \
id="yui_3_16_0_1_1447010105292_7967">http://www.amazon.com/Etekcity-Digital-Hanging-Postal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt</a>","logLevel":"FATAL"} \
({m:TypeError: Cannot find function hasFocus in object [object HTMLDocument]. (<a \
rel="nofollow" target="_blank" \
href="http://z-ecx.images-amazon.com/images/G/01/vap/video/airy2/prod/2.0.1283.0/js/airy.skin._V289604501_.js#5318" \
id="yui_3_16_0_1_1447010105292_7968">http://z-ecx.images-amazon.com/images/G/01/vap/video/airy2/prod/2.0.1283.0/js/airy.skin._V289604501_.js#5318</a>), \
f:"<a rel="nofollow" target="_blank" \
href="http://www.amazon.com/Etekcity-Digital-Hanging-Postal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt" \
id="yui_3_16_0_1_1447010105292_7969">http://www.amazon.com/Etekcity-Digital-Hanging-Postal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt</a>", \
l:5318, c:0, s:[], t:5707.0, name:null, type:null, csm:v6 onerror callee, pageURL:"<a \
rel="nofollow" target="_blank" \
href="http://www.amazon.com/Etekcity-Digital-Hanging-Postal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt" \
id="yui_3_16_0_1_1447010105292_7970">http://www.amazon.com/Etekcity-Digital-Hanging-Postal-Luggage/dp/B00NW62PCA/ref=cts_ap_4_fbt</a>", \
logLevel:"FATAL"})<br></div><div id="yui_3_16_0_1_1447010105292_7971"><br></div><div \
id="yui_3_16_0_1_1447010105292_7972"><br></div><div \
id="yui_3_16_0_1_1447010105292_7973">Is this functionality just missing from \
HTMLDocument? or is it non-standard?</div><div \
id="yui_3_16_0_1_1447010105292_7974"><br></div><div \
id="yui_3_16_0_1_1447010105292_7975">Best,</div><div \
id="yui_3_16_0_1_1447010105292_7976"><br></div><div \
id="yui_3_16_0_1_1447010105292_7977">Teryl</div></div></div></div> </div> </div>  \
</div></body></html>



------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140

_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic