Skip to content

Commit 86d7bcc

Browse files
committed
Merge branch 'WD_1.X_dev' of https://portal-ua.globallogic.com/git/wd into WD_1.X_dev
1 parent 3e214c7 commit 86d7bcc

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

src/webdriver/extension_qt/qwebkit_proxy.cc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "webdriver_util.h"
2424
#include "frame_path.h"
2525
#include "value_conversion_util.h"
26+
#include "webdriver_logging.h"
2627

2728
#include "third_party/webdriver/atoms.h"
2829

@@ -1076,15 +1077,16 @@ Error* QWebkitProxy::GetMute(const ElementId& element, bool* mute) {
10761077
Error* QWebkitProxy::SetOnline(bool online) {
10771078
#ifndef QT_NO_BEARERMANAGEMENT
10781079
QNetworkAccessManager *manager = page_->networkAccessManager();
1079-
10801080
if (online){
10811081
manager->setNetworkAccessible(QNetworkAccessManager::Accessible);
10821082
} else {
10831083
manager->setNetworkAccessible(QNetworkAccessManager::NotAccessible);
10841084
}
1085-
#endif //QT_NO_BEARERMANAGEMENT
1086-
10871085
return NULL;
1086+
#else
1087+
session_->logger().Log(kWarningLogLevel, "In QWebkitProxy::SetOnline() defined QT_NO_BEARERMANAGEMENT");
1088+
return new Error(kCommandNotSupported, "Can't change online mode");
1089+
#endif //QT_NO_BEARERMANAGEMENT
10881090
}
10891091

10901092
Error* QWebkitProxy::IsOnline(bool* online) {
@@ -1095,9 +1097,11 @@ Error* QWebkitProxy::IsOnline(bool* online) {
10951097
} else {
10961098
*online = true;
10971099
}
1098-
#endif //QT_NO_BEARERMANAGEMENT
1099-
11001100
return NULL;
1101+
#else
1102+
session_->logger().Log(kWarningLogLevel, "In QWebkitProxy::IsOnline() defined QT_NO_BEARERMANAGEMENT");
1103+
return new Error(kCommandNotSupported, "Can't check online mode");
1104+
#endif //QT_NO_BEARERMANAGEMENT
11011105
}
11021106

11031107
QWebFrame* QWebkitProxy::GetFrame(QWebPage* page, const FramePath& frame_path) {

wd_common.gypi

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
'WD_CONFIG_QUICK%': '1',
77
'WD_BUILD_MONGOOSE%': '0',
88

9-
'QT_BIN_PATH%': '/usr/lib/qt4/bin',
10-
'QT_INC_PATH%': '/usr/include',
11-
'QT_LIB_PATH%': '/usr/lib',
9+
# 'QT_BIN_PATH%': '/usr/lib/qt4/bin',
10+
# 'QT_INC_PATH%': '/usr/include',
11+
# 'QT_LIB_PATH%': '/usr/lib',
12+
'QT_BIN_PATH': '/home/nataliia/Qt5.1.0/5.1.0/gcc/bin',
13+
'QT_INC_PATH': '/home/nataliia/Qt5.1.0/5.1.0/gcc/include',
14+
'QT_LIB_PATH': '/home/nataliia/Qt5.1.0/5.1.0/gcc/lib',
1215
'MONGOOSE_INC_PATH%': 'src/third_party/mongoose',
1316

1417
'conditions': [
@@ -22,4 +25,4 @@
2225

2326
],
2427
},
25-
}
28+
}

0 commit comments

Comments
 (0)