File tree Expand file tree Collapse file tree 6 files changed +27
-9
lines changed Expand file tree Collapse file tree 6 files changed +27
-9
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ void FindChildElementCommandHandler::ExecuteInternal(
101
101
return ;
102
102
}
103
103
if (status_code == ENOSUCHWINDOW) {
104
- response->SetErrorResponse (ERROR_NO_SUCH_WINDOW, " Unable to find element on closed window" );
104
+ response->SetErrorResponse (ERROR_NO_SUCH_WINDOW,
105
+ " Unable to find element on closed window" );
105
106
return ;
106
107
}
107
108
if (status_code != ENOSUCHELEMENT) {
@@ -117,8 +118,13 @@ void FindChildElementCommandHandler::ExecuteInternal(
117
118
response->SetErrorResponse (ERROR_NO_SUCH_ELEMENT,
118
119
" Unable to find element with " + mechanism + " == " + value);
119
120
} else {
120
- response->SetErrorResponse (ERROR_INVALID_ARGUMENT, " Element is no longer valid" );
121
- return ;
121
+ if (status_code == EOBSOLETEELEMENT) {
122
+ response->SetErrorResponse (ERROR_STALE_ELEMENT_REFERENCE,
123
+ " Specified parent element is no longer attached to the DOM" );
124
+ } else {
125
+ response->SetErrorResponse (ERROR_INVALID_ARGUMENT,
126
+ " Element is no longer valid" );
127
+ }
122
128
}
123
129
}
124
130
Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ void FindChildElementsCommandHandler::ExecuteInternal(
101
101
return ;
102
102
}
103
103
} else if (status_code == ENOSUCHWINDOW) {
104
- response->SetErrorResponse (ERROR_NO_SUCH_WINDOW, " Unable to find elements on closed window" );
104
+ response->SetErrorResponse (ERROR_NO_SUCH_WINDOW,
105
+ " Unable to find elements on closed window" );
105
106
return ;
106
107
} else {
107
108
response->SetErrorResponse (status_code, found_elements.asString ());
@@ -121,7 +122,13 @@ void FindChildElementsCommandHandler::ExecuteInternal(
121
122
" returned an unexpected error" );
122
123
}
123
124
} else {
124
- response->SetErrorResponse (ERROR_INVALID_ARGUMENT, " Element is no longer valid" );
125
+ if (status_code == EOBSOLETEELEMENT) {
126
+ response->SetErrorResponse (ERROR_STALE_ELEMENT_REFERENCE,
127
+ " Specified parent element is no longer attached to the DOM" );
128
+ } else {
129
+ response->SetErrorResponse (ERROR_INVALID_ARGUMENT,
130
+ " Element is no longer valid" );
131
+ }
125
132
}
126
133
}
127
134
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ available via the project downloads page. Changes in "revision" field indicate
9
9
private releases checked into the prebuilts directory of the source tree, but
10
10
not made generally available on the downloads page.
11
11
12
+ v3.11.1.4
13
+ =========
14
+ * Fixed finding child elements to return proper error if parent element is
15
+ stale. Fixes issue #5700.
16
+
12
17
v3.11.1.3
13
18
=========
14
19
* Fixed detection of obscured elements when top element is not displayed.
Original file line number Diff line number Diff line change 50
50
//
51
51
52
52
VS_VERSION_INFO VERSIONINFO
53
- FILEVERSION 3,11,1,3
54
- PRODUCTVERSION 3,11,1,3
53
+ FILEVERSION 3,11,1,4
54
+ PRODUCTVERSION 3,11,1,4
55
55
FILEFLAGSMASK 0x3fL
56
56
#ifdef _DEBUG
57
57
FILEFLAGS 0x1L
@@ -68,12 +68,12 @@ BEGIN
68
68
BEGIN
69
69
VALUE "CompanyName", "Software Freedom Conservancy"
70
70
VALUE "FileDescription", "Command line server for the IE driver"
71
- VALUE "FileVersion", "3.11.1.3 "
71
+ VALUE "FileVersion", "3.11.1.4 "
72
72
VALUE "InternalName", "IEDriverServer.exe"
73
73
VALUE "LegalCopyright", "Copyright (C) 2017"
74
74
VALUE "OriginalFilename", "IEDriverServer.exe"
75
75
VALUE "ProductName", "Selenium WebDriver"
76
- VALUE "ProductVersion", "3.11.1.3 "
76
+ VALUE "ProductVersion", "3.11.1.4 "
77
77
END
78
78
END
79
79
BLOCK "VarFileInfo"
You can’t perform that action at this time.
0 commit comments