the wordreference example gives a "Javascript console: ReferenceError: Can't find variable: $"
Closed this issue · 1 comments
I just commented
# browser.create_webview()
# browser.show()
then it produces:
Page load started
Request: GET http://www.wordreference.com/
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/534.34 (KHTML, like Gecko) python Safari/534.34
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Request: GET http://www.google-analytics.com/ga.js
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/534.34 (KHTML, like Gecko) python Safari/534.34
Accept: /
Referer: http://www.wordreference.com/
Request: GET http://b.scorecardresearch.com/beacon.js
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/534.34 (KHTML, like Gecko) python Safari/534.34
Accept: /
Referer: http://www.wordreference.com/
Javascript console (http://www.wordreference.com/:727):
Request: GET http://www.wordreference.com/2012/homepage.ip2cc.aspx
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/534.34 (KHTML, like Gecko) python Safari/534.34
Accept: /
Referer: http://www.wordreference.com/
Request: GET http://yui.yahooapis.com/combo?2.9.0/build/yuiloader-dom-event/yuiloader-dom-event.js&2.9.0/build/datasource/datasource-min.js&2.9.0/build/autocomplete/autocomplete-min.js&2.9.0/build/connection/connection_core-min.js&2.9.0/build/json/json-min.js
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/534.34 (KHTML, like Gecko) python Safari/534.34
Accept: /
Referer: http://www.wordreference.com/
Request: GET http://www.wordreference.com/2012/scripts/2010kmin-conjAC.js
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/534.34 (KHTML, like Gecko) python Safari/534.34
Accept: /
Referer: http://www.wordreference.com/
Reply: 200/OK - http://www.wordreference.com/
Cache-Control: max-age=86400
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Last-Modified: Tue, 21 Jan 2014 17:11:24 GMT
Accept-Ranges: bytes
ETag: "0c6f2cfcb16cf1:0"
Vary: Accept-Encoding
Server: Microsoft-IIS/8.0
Date: Fri, 02 May 2014 15:12:57 GMT
Request: GET http://www.wordreference.com/images/magnifying_glass_white_26x26.png
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/534.34 (KHTML, like Gecko) python Safari/534.34
Referer: http://www.wordreference.com/
Accept: /
Reply: 200/OK - http://www.wordreference.com/2012/homepage.ip2cc.aspx
Cache-Control: private
Content-Type: text/javascript; charset=utf-8
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/8.0
X-AspNet-Version: 4.0.30319
Date: Fri, 02 May 2014 15:12:57 GMT
Reply: 200/OK - http://www.wordreference.com/2012/scripts/2010kmin-conjAC.js
Cache-Control: max-age=86400
Content-Type: application/javascript
Content-Encoding: gzip
Last-Modified: Wed, 18 Sep 2013 19:38:31 GMT
Accept-Ranges: bytes
ETag: "80559da7a6b4ce1:0"
Vary: Accept-Encoding
Server: Microsoft-IIS/8.0
Date: Fri, 02 May 2014 15:12:57 GMT
Reply: 200/OK - http://b.scorecardresearch.com/beacon.js
Content-Type: application/x-javascript
Vary: Accept-Encoding
Content-Encoding: gzip
Expires: Fri, 16 May 2014 15:12:58 GMT
Date: Fri, 02 May 2014 15:12:58 GMT
Connection: keep-alive
Cache-Control: private, no-transform, max-age=1209600
Request: GET http://b.scorecardresearch.com/b?c1=2&c2=14185589&ns__t=1399043578271&ns_c=UTF-8&c8=English to French, Italian, German & Spanish Dictionary - WordReference.com&c7=http://www.wordreference.com/&c9=
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/534.34 (KHTML, like Gecko) python Safari/534.34
Referer: http://www.wordreference.com/
Accept: /
Reply: 200/OK - http://www.wordreference.com/images/magnifying_glass_white_26x26.png
Cache-Control: max-age=86400
Content-Type: image/png
Last-Modified: Mon, 08 Jul 2013 20:07:18 GMT
Accept-Ranges: bytes
ETag: "09f3ebf167cce1:0"
Server: Microsoft-IIS/8.0
Date: Fri, 02 May 2014 15:12:57 GMT
Content-Length: 534
Reply: 200/OK - http://www.google-analytics.com/ga.js
Date: Fri, 02 May 2014 08:50:12 GMT
Expires: Fri, 02 May 2014 20:50:12 GMT
Last-Modified: Thu, 10 Apr 2014 18:45:31 GMT
X-Content-Type-Options: nosniff
Content-Type: text/javascript
Vary: Accept-Encoding
Content-Encoding: gzip
Server: Golfe2
Cache-Control: public, max-age=43200
Age: 22966
Alternate-Protocol: 80:quic
Reply: 302/Moved Temporarily - http://b.scorecardresearch.com/b?c1=2&c2=14185589&ns__t=1399043578271&ns_c=UTF-8&c8=English to French, Italian, German & Spanish Dictionary - WordReference.com&c7=http://www.wordreference.com/&c9=
Content-Length: 0
Location: http://b.scorecardresearch.com/b2?c1=2&c2=14185589&ns__t=1399043578271&ns_c=UTF-8&c8=English%20to%20French%2C%20Italian%2C%20German%20%26%20Spanish%20Dictionary%20-%20WordReference.com&c7=http%3A%2F%2Fwww.wordreference.com%2F&c9=
Date: Fri, 02 May 2014 15:12:58 GMT
Connection: keep-alive
Set-Cookie: UID=a530f6e-88.221.14.64-1399043578; expires=Thu, 21-Apr-2016 15:12:58 GMT; path=/; domain=.scorecardresearch.com
UIDR=1399043578; expires=Thu, 21-Apr-2016 15:12:58 GMT; path=/; domain=.scorecardresearch.com
Pragma: no-cache
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Cache-Control: private, no-cache, no-cache=Set-Cookie, no-store, proxy-revalidate
Request: GET http://b.scorecardresearch.com/b2?c1=2&c2=14185589&ns__t=1399043578271&ns_c=UTF-8&c8=English to French, Italian, German & Spanish Dictionary - WordReference.com&c7=http://www.wordreference.com/&c9=
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/534.34 (KHTML, like Gecko) python Safari/534.34
Referer: http://www.wordreference.com/
Accept: /
Request: GET http://www.google-analytics.com/__utm.gif?utmwv=5.5.0&utms=1&utmn=1595556708&utmhn=www.wordreference.com&utmcs=UTF-8&utmsr=1366x768&utmsc=32-bit&utmul=fr-fr&utmje=0&utmfl=-&utmdt=English to French, Italian, German & Spanish Dictionary - WordReference.com&utmhid=1576260527&utmr=-&utmp=/&utmht=1399043578501&utmac=UA-187118-1&utmcc=__utma=253024271.1234341873.1399043578.1399043578.1399043578.1;+__utmz=253024271.1399043578.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);&utmu=q~
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/534.34 (KHTML, like Gecko) python Safari/534.34
Referer: http://www.wordreference.com/
Accept: /
Reply: 204/No Content - http://b.scorecardresearch.com/b2?c1=2&c2=14185589&ns__t=1399043578271&ns_c=UTF-8&c8=English to French, Italian, German & Spanish Dictionary - WordReference.com&c7=http://www.wordreference.com/&c9=
Content-Length: 0
Date: Fri, 02 May 2014 15:12:58 GMT
Connection: keep-alive
Pragma: no-cache
Expires: Mon, 01 Jan 1990 00:00:00 GMT
Cache-Control: private, no-cache, no-cache=Set-Cookie, no-store, proxy-revalidate
Reply: 200/OK - http://www.google-analytics.com/__utm.gif?utmwv=5.5.0&utms=1&utmn=1595556708&utmhn=www.wordreference.com&utmcs=UTF-8&utmsr=1366x768&utmsc=32-bit&utmul=fr-fr&utmje=0&utmfl=-&utmdt=English to French, Italian, German & Spanish Dictionary - WordReference.com&utmhid=1576260527&utmr=-&utmp=/&utmht=1399043578501&utmac=UA-187118-1&utmcc=__utma=253024271.1234341873.1399043578.1399043578.1399043578.1;+__utmz=253024271.1399043578.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);&utmu=q~
Pragma: no-cache
Expires: Wed, 19 Apr 2000 11:43:00 GMT
Last-Modified: Wed, 21 Jan 2004 19:51:30 GMT
X-Content-Type-Options: nosniff
Content-Type: image/gif
Date: Thu, 01 May 2014 20:50:15 GMT
Server: Golfe2
Content-Length: 35
Cache-Control: private, no-cache, no-cache=Set-Cookie, proxy-revalidate
Age: 66163
Alternate-Protocol: 80:quic
Reply: 200/OK - http://yui.yahooapis.com/combo?2.9.0/build/yuiloader-dom-event/yuiloader-dom-event.js&2.9.0/build/datasource/datasource-min.js&2.9.0/build/autocomplete/autocomplete-min.js&2.9.0/build/connection/connection_core-min.js&2.9.0/build/json/json-min.js
Vary: Accept-Encoding
Cache-Control: max-age=315360000
Last-Modified: Wed, 30 Apr 2014 07:21:55 GMT
Content-Type: application/javascript; charset=utf-8
Expires: Sat, 05 Sep 2026 00:00:00 GMT
Content-Encoding: gzip
Date: Wed, 30 Apr 2014 07:21:55 GMT
Age: 201063
Via: http/1.0 c1.ycs.bf1.yahoo.com (ApacheTrafficServer/4.0.2), http/1.1 l9.ycs.dcb.yahoo.com (ApacheTrafficServer/4.0.2)
Server: ATS
Connection: keep-alive
Page load finished (24016 bytes): http://www.wordreference.com/ (successful)
Run Javascript code: $('option:selected', $('#esen').parents('select')[0]).removeAttr('selected');
$('#esen').attr('selected', 'selected');
Javascript console: ReferenceError: Can't find variable: $
Run Javascript code: $('input[name=w]').val('hola')
Javascript console: ReferenceError: Can't find variable: $
well sorry I ended up removing
browser.load_jquery(True)
too