I am trying to run my robot tests using headless browser for that I choose PhantomJS. My company has lots of firewalls and certificates to access portal. I tried to set up below code:
File Should Exist ${CTU_CERT_PATH}
File Should Exist ${MY_CTUDEV_CERT_FILE}
File Should Exist ${MY_CTUDEV_KEY_FILE}
${service args}= Create List --proxy=${PROXY_HOST}:${PROXY_PORT}
... --proxy-auth=pmadasu@HelloDell@2204
... --ssl-certificates-path=${CTU_CERT_PATH}
... --ssl-client-certificate-file=${MY_CTUDEV_CERT_FILE}
... --ssl-client-key-file=${MY_CTUDEV_KEY_FILE}
... --ignore-ssl-errors=yes
LOG ${service args}
File Should Exist ${PHANTOMJS_BINARY}
Create Webdriver PhantomJS
# ... executable_path=${PHANTOMJS_BINARY}
... service_args=${service args}
Go To ${BASE_URL}
capture page screenshot
page should contain Domain Access==============================================================================
Test :: Revisions - Author: xyzTeam
==============================================================================
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
RC-PL-TOOLS-PL:1.7 | FAIL |
WebDriverException: Message: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Notification: Gateway Timeout</title>
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 14px;
color:#333333;
background-color: #ffffff;
}
h1 {
font-size: 18px;
font-weight: bold;
text-decoration: none;
padding-top: 0px;
[ Message content over the limit has been removed. ]
<p>
If you have questions, please contact
and provide the codes shown below.
</p>
</div>
<div class="details"><p>
Date: Tue, 13 Jun 2017 10:10:08 GMT<br />
Username: xxx@AD<br />
Source IP: 10.21.9.83<br />
Category: Uncategorized URLs<br />
Reason: UNKNOWN<br />
Notification: GATEWAY_TIMEOUT
</p></div>
</body>
</html>
if anyone from this group know Robot Framework with PhantomJS please help me in resolving this issue.