Skip to content

Commit 9c4f94c

Browse files
committed
Updating IE prebuilts and JavaScript atoms
1 parent 070e9a9 commit 9c4f94c

File tree

5 files changed

+117
-59
lines changed

5 files changed

+117
-59
lines changed

cpp/iedriver/Generated/atoms.h

Lines changed: 56 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,61 +1575,62 @@ const wchar_t* const CLEAR[] = {
15751575
L"totype.create=function(a){a=u(a);Va&&a.createEventObject?a=a.createEve",
15761576
L"ntObject():(a=a.createEvent(\"HTMLEvents\"),a.initEvent(this.a,this.b,",
15771577
L"this.f));return a};ad.prototype.toString=function(){return this.a};var",
1578-
L" bd=new ad(\"change\",!0,!1);function cd(a,b){this.w={};this.m=[];this",
1579-
L".a=0;var c=arguments.length;if(1<c){if(c%2)throw Error(\"Uneven number",
1580-
L" of arguments\");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[",
1581-
L"d+1])}else if(a){if(a instanceof cd){d=dd(a);ed(a);var e=[];for(c=0;c<",
1582-
L"a.m.length;c++)e.push(a.w[a.m[c]])}else{var c=[],f=0;for(d in a)c[f++]",
1583-
L"=d;d=c;c=[];f=0;for(e in a)c[f++]=a[e];e=c}for(c=0;c<d.length;c++)this",
1584-
L".set(d[c],e[c])}}function dd(a){ed(a);return a.m.concat()}\nfunction e",
1585-
L"d(a){var b,c;if(a.a!=a.m.length){for(b=c=0;c<a.m.length;){var d=a.m[c]",
1586-
L";Object.prototype.hasOwnProperty.call(a.w,d)&&(a.m[b++]=d);c++}a.m.len",
1587-
L"gth=b}if(a.a!=a.m.length){var e={};for(b=c=0;c<a.m.length;)d=a.m[c],Ob",
1588-
L"ject.prototype.hasOwnProperty.call(e,d)||(a.m[b++]=d,e[d]=1),c++;a.m.l",
1589-
L"ength=b}}cd.prototype.get=function(a,b){return Object.prototype.hasOwn",
1590-
L"Property.call(this.w,a)?this.w[a]:b};\ncd.prototype.set=function(a,b){",
1591-
L"Object.prototype.hasOwnProperty.call(this.w,a)||(this.a++,this.m.push(",
1592-
L"a));this.w[a]=b};var fd={};function Y(a,b,c){fa(a)&&(a=a.g);a=new gd(a",
1593-
L");!b||b in fd&&!c||(fd[b]={key:a,shift:!1},c&&(fd[c]={key:a,shift:!0})",
1594-
L");return a}function gd(a){this.code=a}Y(8);Y(9);Y(13);var hd=Y(16),id=",
1595-
L"Y(17),jd=Y(18);Y(19);Y(20);Y(27);Y(32,\" \");Y(33);Y(34);Y(35);Y(36);Y",
1596-
L"(37);Y(38);Y(39);Y(40);Y(44);Y(45);Y(46);Y(48,\"0\",\")\");Y(49,\"1\",",
1597-
L"\"!\");Y(50,\"2\",\"@\");Y(51,\"3\",\"#\");Y(52,\"4\",\"$\");Y(53,\"5",
1598-
L"\",\"%\");Y(54,\"6\",\"^\");Y(55,\"7\",\"&\");Y(56,\"8\",\"*\");Y(57,",
1599-
L"\"9\",\"(\");Y(65,\"a\",\"A\");Y(66,\"b\",\"B\");Y(67,\"c\",\"C\");Y(6",
1600-
L"8,\"d\",\"D\");\nY(69,\"e\",\"E\");Y(70,\"f\",\"F\");Y(71,\"g\",\"G\")",
1601-
L";Y(72,\"h\",\"H\");Y(73,\"i\",\"I\");Y(74,\"j\",\"J\");Y(75,\"k\",\"K",
1602-
L"\");Y(76,\"l\",\"L\");Y(77,\"m\",\"M\");Y(78,\"n\",\"N\");Y(79,\"o\",",
1603-
L"\"O\");Y(80,\"p\",\"P\");Y(81,\"q\",\"Q\");Y(82,\"r\",\"R\");Y(83,\"s",
1604-
L"\",\"S\");Y(84,\"t\",\"T\");Y(85,\"u\",\"U\");Y(86,\"v\",\"V\");Y(87,",
1605-
L"\"w\",\"W\");Y(88,\"x\",\"X\");Y(89,\"y\",\"Y\");Y(90,\"z\",\"Z\");var",
1606-
L" kd=Y(La?{h:91,g:91}:Ka?{h:224,g:91}:{h:0,g:91});Y(La?{h:92,g:92}:Ka?{",
1607-
L"h:224,g:93}:{h:0,g:92});Y(La?{h:93,g:93}:Ka?{h:0,g:0}:{h:93,g:null});Y",
1608-
L"({h:96,g:96},\"0\");Y({h:97,g:97},\"1\");\nY({h:98,g:98},\"2\");Y({h:9",
1609-
L"9,g:99},\"3\");Y({h:100,g:100},\"4\");Y({h:101,g:101},\"5\");Y({h:102,",
1610-
L"g:102},\"6\");Y({h:103,g:103},\"7\");Y({h:104,g:104},\"8\");Y({h:105,g",
1611-
L":105},\"9\");Y({h:106,g:106},\"*\");Y({h:107,g:107},\"+\");Y({h:109,g:",
1612-
L"109},\"-\");Y({h:110,g:110},\".\");Y({h:111,g:111},\"/\");Y(144);Y(112",
1613-
L");Y(113);Y(114);Y(115);Y(116);Y(117);Y(118);Y(119);Y(120);Y(121);Y(122",
1614-
L");Y(123);Y({h:107,g:187},\"=\",\"+\");Y(108,\",\");Y({h:109,g:189},\"-",
1615-
L"\",\"_\");Y(188,\",\",\"<\");Y(190,\".\",\">\");Y(191,\"/\",\"?\");Y(1",
1616-
L"92,\"`\",\"~\");Y(219,\"[\",\"{\");\nY(220,\"\\\\\",\"|\");Y(221,\"]\"",
1617-
L",\"}\");Y({h:59,g:186},\";\",\":\");Y(222,\"'\",'\"');var ld=new cd;ld",
1618-
L".set(1,hd);ld.set(2,id);ld.set(4,jd);ld.set(8,kd);(function(a){var b=n",
1619-
L"ew cd;p(dd(a),function(c){b.set(a.get(c).code,c)});return b})(ld);func",
1620-
L"tion md(){Yc.call(this)}n(md,Yc);md.a=void 0;md.b=function(){return md",
1621-
L".a?md.a:md.a=new md};ca(\"_\",function(a){if(!Uc(a)||!Kc(a))throw new ",
1622-
L"Da(12,\"Element is not currently interactable and may not be manipulat",
1623-
L"ed\");if(!(Ic(a)||v(a,\"INPUT\")&&\"file\"==a.type.toLowerCase())||lb(",
1624-
L"a,\"readOnly\"))throw new Da(12,\"Element must be user-editable in ord",
1625-
L"er to clear it.\");var b=md.b();Zc(b,a);$c(b);a.value?(a.value=\"\",b=",
1626-
L"bd.create(a,void 0),\"isTrusted\"in b||(b.isTrusted=!1),Va&&a.fireEven",
1627-
L"t?a.fireEvent(\"on\"+bd.a,b):a.dispatchEvent(b)):v(a,\"INPUT\")&&a.get",
1628-
L"Attribute(\"type\")&&\"number\"==a.getAttribute(\"type\").toLowerCase(",
1629-
L")&&\n(a.value=\"\");Mc(a)&&(a.innerHTML=\" \")});; return this._.apply",
1630-
L"(null,arguments);}.apply({navigator:typeof window!='undefined'?window.",
1631-
L"navigator:null,document:typeof window!='undefined'?window.document:nul",
1632-
L"l}, arguments);}",
1578+
L" bd=new ad(\"blur\",!1,!1),cd=new ad(\"change\",!0,!1);function dd(a,b",
1579+
L"){var c=b.create(a,void 0);\"isTrusted\"in c||(c.isTrusted=!1);Va&&a.f",
1580+
L"ireEvent?a.fireEvent(\"on\"+b.a,c):a.dispatchEvent(c)};function ed(a,b",
1581+
L"){this.w={};this.m=[];this.a=0;var c=arguments.length;if(1<c){if(c%2)t",
1582+
L"hrow Error(\"Uneven number of arguments\");for(var d=0;d<c;d+=2)this.s",
1583+
L"et(arguments[d],arguments[d+1])}else if(a){if(a instanceof ed){d=fd(a)",
1584+
L";gd(a);var e=[];for(c=0;c<a.m.length;c++)e.push(a.w[a.m[c]])}else{var ",
1585+
L"c=[],f=0;for(d in a)c[f++]=d;d=c;c=[];f=0;for(e in a)c[f++]=a[e];e=c}f",
1586+
L"or(c=0;c<d.length;c++)this.set(d[c],e[c])}}function fd(a){gd(a);return",
1587+
L" a.m.concat()}\nfunction gd(a){var b,c;if(a.a!=a.m.length){for(b=c=0;c",
1588+
L"<a.m.length;){var d=a.m[c];Object.prototype.hasOwnProperty.call(a.w,d)",
1589+
L"&&(a.m[b++]=d);c++}a.m.length=b}if(a.a!=a.m.length){var e={};for(b=c=0",
1590+
L";c<a.m.length;)d=a.m[c],Object.prototype.hasOwnProperty.call(e,d)||(a.",
1591+
L"m[b++]=d,e[d]=1),c++;a.m.length=b}}ed.prototype.get=function(a,b){retu",
1592+
L"rn Object.prototype.hasOwnProperty.call(this.w,a)?this.w[a]:b};\ned.pr",
1593+
L"ototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.w,",
1594+
L"a)||(this.a++,this.m.push(a));this.w[a]=b};var hd={};function Y(a,b,c)",
1595+
L"{fa(a)&&(a=a.g);a=new id(a);!b||b in hd&&!c||(hd[b]={key:a,shift:!1},c",
1596+
L"&&(hd[c]={key:a,shift:!0}));return a}function id(a){this.code=a}Y(8);Y",
1597+
L"(9);Y(13);var jd=Y(16),kd=Y(17),ld=Y(18);Y(19);Y(20);Y(27);Y(32,\" \")",
1598+
L";Y(33);Y(34);Y(35);Y(36);Y(37);Y(38);Y(39);Y(40);Y(44);Y(45);Y(46);Y(4",
1599+
L"8,\"0\",\")\");Y(49,\"1\",\"!\");Y(50,\"2\",\"@\");Y(51,\"3\",\"#\");Y",
1600+
L"(52,\"4\",\"$\");Y(53,\"5\",\"%\");Y(54,\"6\",\"^\");Y(55,\"7\",\"&\")",
1601+
L";Y(56,\"8\",\"*\");Y(57,\"9\",\"(\");Y(65,\"a\",\"A\");Y(66,\"b\",\"B",
1602+
L"\");Y(67,\"c\",\"C\");Y(68,\"d\",\"D\");\nY(69,\"e\",\"E\");Y(70,\"f\"",
1603+
L",\"F\");Y(71,\"g\",\"G\");Y(72,\"h\",\"H\");Y(73,\"i\",\"I\");Y(74,\"j",
1604+
L"\",\"J\");Y(75,\"k\",\"K\");Y(76,\"l\",\"L\");Y(77,\"m\",\"M\");Y(78,",
1605+
L"\"n\",\"N\");Y(79,\"o\",\"O\");Y(80,\"p\",\"P\");Y(81,\"q\",\"Q\");Y(8",
1606+
L"2,\"r\",\"R\");Y(83,\"s\",\"S\");Y(84,\"t\",\"T\");Y(85,\"u\",\"U\");Y",
1607+
L"(86,\"v\",\"V\");Y(87,\"w\",\"W\");Y(88,\"x\",\"X\");Y(89,\"y\",\"Y\")",
1608+
L";Y(90,\"z\",\"Z\");var md=Y(La?{h:91,g:91}:Ka?{h:224,g:91}:{h:0,g:91})",
1609+
L";Y(La?{h:92,g:92}:Ka?{h:224,g:93}:{h:0,g:92});Y(La?{h:93,g:93}:Ka?{h:0",
1610+
L",g:0}:{h:93,g:null});Y({h:96,g:96},\"0\");Y({h:97,g:97},\"1\");\nY({h:",
1611+
L"98,g:98},\"2\");Y({h:99,g:99},\"3\");Y({h:100,g:100},\"4\");Y({h:101,g",
1612+
L":101},\"5\");Y({h:102,g:102},\"6\");Y({h:103,g:103},\"7\");Y({h:104,g:",
1613+
L"104},\"8\");Y({h:105,g:105},\"9\");Y({h:106,g:106},\"*\");Y({h:107,g:1",
1614+
L"07},\"+\");Y({h:109,g:109},\"-\");Y({h:110,g:110},\".\");Y({h:111,g:11",
1615+
L"1},\"/\");Y(144);Y(112);Y(113);Y(114);Y(115);Y(116);Y(117);Y(118);Y(11",
1616+
L"9);Y(120);Y(121);Y(122);Y(123);Y({h:107,g:187},\"=\",\"+\");Y(108,\",",
1617+
L"\");Y({h:109,g:189},\"-\",\"_\");Y(188,\",\",\"<\");Y(190,\".\",\">\")",
1618+
L";Y(191,\"/\",\"?\");Y(192,\"`\",\"~\");Y(219,\"[\",\"{\");\nY(220,\"",
1619+
L"\\\\\",\"|\");Y(221,\"]\",\"}\");Y({h:59,g:186},\";\",\":\");Y(222,\"'",
1620+
L"\",'\"');var nd=new ed;nd.set(1,jd);nd.set(2,kd);nd.set(4,ld);nd.set(8",
1621+
L",md);(function(a){var b=new ed;p(fd(a),function(c){b.set(a.get(c).code",
1622+
L",c)});return b})(nd);function od(){Yc.call(this)}n(od,Yc);od.a=void 0;",
1623+
L"od.b=function(){return od.a?od.a:od.a=new od};function pd(a){var b=od.",
1624+
L"b();Zc(b,a);$c(b)};ca(\"_\",function(a){if(!Uc(a)||!Kc(a))throw new Da",
1625+
L"(12,\"Element is not currently interactable and may not be manipulated",
1626+
L"\");if(!(Ic(a)||v(a,\"INPUT\")&&\"file\"==a.type.toLowerCase())||lb(a,",
1627+
L"\"readOnly\"))throw new Da(12,\"Element must be user-editable in order",
1628+
L" to clear it.\");a.value?(pd(a),a.value=\"\",dd(a,cd),dd(a,bd),pd(docu",
1629+
L"ment.body)):v(a,\"INPUT\")&&a.getAttribute(\"type\")&&\"number\"==a.ge",
1630+
L"tAttribute(\"type\").toLowerCase()&&(pd(a),a.value=\"\");Mc(a)&&(pd(a)",
1631+
L",a.innerHTML=\" \")});; return this._.apply(null,arguments);}.apply({n",
1632+
L"avigator:typeof window!='undefined'?window.navigator:null,document:typ",
1633+
L"eof window!='undefined'?window.document:null}, arguments);}",
16331634
NULL
16341635
};
16351636

cpp/iedriverserver/CHANGELOG

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,63 @@ available via the project downloads page. Changes in "revision" field indicate
99
private releases checked into the prebuilts directory of the source tree, but
1010
not made generally available on the downloads page.
1111

12+
v3.10.0.1
13+
=========
14+
* Updates to JavaScript automation atoms.
15+
* Updated clear element command handler to return W3C compliant errors for IE.
16+
* Updated IE error response to be spec compliant for sendKeys
17+
* Fixed IE cookie retrieval for IE 10 and 11. Internet Explorer relies on a
18+
Windows component called WinINet to communicate over the Internet. This
19+
includes WinINet APIs for getting and setting cookies. Prior to Windows 10,
20+
persistent cookies were stored in files on the hard drive. A change in
21+
WinINet moved the persistent cookie storage from files on the disk to an
22+
Extensible Storage Engine (ESE or "Jet Blue") database, which rendered them
23+
unreadable by the IE driver. This commit restores the functionality of
24+
getting cookies by using an API function called InternetGetCookieEx2.
25+
26+
This API function was introduced in the Windows 8.1 SDK, which means that
27+
it won't be available to older versions of WinINet. In that case, we fall
28+
back to the original behavior of attempting to parse cookie files from the
29+
disk. There is a chance that the detection of the availability of this API
30+
is flawed in the IE driver.
31+
* Revamped handling of modifier keys. The IE driver is now able to
32+
distinguish between the left and right modifier keys (Shift, Control,
33+
Alt) on the keyboard.
34+
* Modified mouse event handling to match W3C Specification.
35+
36+
THIS IS A POTENTIAL BREAKING CHANGE.
37+
38+
The simulation of mouse movement for the actions command now conforms
39+
to the W3C WebDriver Specification for mouse movement. This means
40+
that offsets in elements are now measured from the center of the
41+
element instead of the top-left, which was the previous behavior.
42+
Additionally, attempting to move the mouse pointer outside the
43+
browser view port will result in a "mouse movement out of bounds"
44+
error. While users should be aware that this might cause code
45+
using user interactions to fail, not that the behavior is now
46+
consistent with the behavior outlined in the specification, and
47+
the behavior of geckodriver in particular.
48+
* Modified processing of pause actions in keyboard action sequences.
49+
The vast majority of use of pause actions in a keyboard action
50+
sequence are used to synchronize the entire action chain with other
51+
(mouse) action sequences. To allow the driver to properly synchronize
52+
the input sequences, the driver will now ignore the duration property
53+
of pause events in keyboard action sequences. This is deliberately in
54+
violation of the W3C specification, and may be revisited in the future.
55+
* Fixed sending keystrokes outside the Basic Multilingual Plane. This
56+
allows emoji and other Unicode characters that are represented by
57+
surrogate pairs in UTF-16 to be sent to IE.
58+
* Fixed getElementProperty to return proper data type. Previously,
59+
the getElementProperty command would coerce the property value to a
60+
string. This is not correct behavior as specified in the W3C spec.
61+
* Revert behavior of user prompts appearing during JavaScript execution.
62+
This behavior causes too many problems in too many scenarios where a
63+
prompt can appear. Reverting to the previous behavior, which is that
64+
encountering a user prompt ('alert', 'confirm', 'prompt') when calling
65+
JavaScript with executeScript will immediately return control back to
66+
the WebDriver code (returning null), and rely on the immediately
67+
following command to handle the user prompt.
68+
1269
v3.10.0.0
1370
=========
1471
* Release to synchronize with release of Selenium project.

cpp/iedriverserver/IEDriverServer.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ END
5050
//
5151

5252
VS_VERSION_INFO VERSIONINFO
53-
FILEVERSION 3,10,0,0
54-
PRODUCTVERSION 3,10,0,0
53+
FILEVERSION 3,10,0,1
54+
PRODUCTVERSION 3,10,0,1
5555
FILEFLAGSMASK 0x3fL
5656
#ifdef _DEBUG
5757
FILEFLAGS 0x1L
@@ -68,12 +68,12 @@ BEGIN
6868
BEGIN
6969
VALUE "CompanyName", "Software Freedom Conservancy"
7070
VALUE "FileDescription", "Command line server for the IE driver"
71-
VALUE "FileVersion", "3.10.0.0"
71+
VALUE "FileVersion", "3.10.0.1"
7272
VALUE "InternalName", "IEDriverServer.exe"
7373
VALUE "LegalCopyright", "Copyright (C) 2017"
7474
VALUE "OriginalFilename", "IEDriverServer.exe"
7575
VALUE "ProductName", "Selenium WebDriver"
76-
VALUE "ProductVersion", "3.10.0.0"
76+
VALUE "ProductVersion", "3.10.0.1"
7777
END
7878
END
7979
BLOCK "VarFileInfo"
Binary file not shown.
3 KB
Binary file not shown.

0 commit comments

Comments
 (0)