Skip to content

Commit

Permalink
Handling alert text controls conatining no accText property in IE.
Browse files Browse the repository at this point in the history
Fixes issue SeleniumHQ#651.
  • Loading branch information
jimevans committed Jun 11, 2015
1 parent 464ab8e commit bb5ca71
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cpp/iedriver/Alert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,16 @@ std::string Alert::GetDirectUIDialogText() {
if (FAILED(hr)) {
LOGHR(WARN, hr) << "Failed to get accName property from text object";
return alert_text_value;
} else if (hr != S_OK) {
// N.B., get_accName can return an error value without it being a
// standard COM error.
LOG(WARN) << "Getting accName property from text object returned an error "
<< "(value: " << hr << "). The text object may not have a name.";
return alert_text_value;
} else if (text_bstr == NULL) {
LOG(WARN) << "Getting accName property from text object returned a null "
<< "value";
return alert_text_value;
}

std::wstring text = text_bstr;
Expand Down
5 changes: 5 additions & 0 deletions cpp/iedriverserver/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ available via the project downloads page. Changes in "revision" field indicate
private releases checked into the prebuilts directory of the source tree, but
not made generally available on the downloads page.

v2.46.0.0
=========
* Handles issue with alert text controls conatining no accText property in IE.
Fixes issue #651.

v2.46.0.0
=========
* Release to synchronize with release of Selenium project.
Expand Down
Binary file modified cpp/iedriverserver/IEDriverServer.rc
Binary file not shown.
Binary file modified cpp/prebuilt/Win32/Release/IEDriverServer.exe
Binary file not shown.
Binary file modified cpp/prebuilt/x64/Release/IEDriverServer.exe
Binary file not shown.

0 comments on commit bb5ca71

Please sign in to comment.