*** Settings ***
Documentation Test suite-2 Verify the connect webpage is logged in with valid logon credentials
Library Selenium2Library
*** Variables ***
${HOMEPAGE} http://192.168.10.132:8080/connectserver
${BROWSER} FireFox
${DELAY} 1
${USERNAME} admin
${PASSWORD} connect
*** Test Cases ***
connect login
open connect webpage
enter login credentials
click login
connect logout
logout connect webgui
*** Keywords ***
Open connect webpage
open browser ${HOMEPAGE} ${BROWSER}
Maximize Browser Window
Set Selenium Speed ${DELAY}
enter login credentials
Input Text id=username ${USERNAME}
Input Text id=password ${PASSWORD}
click login
Click Button id=loginAction_login_submit
logout connect webgui
Get Location
Select Frame xpath=//div[1][@class='ui-layout-north ui-layout-pane ui-layout-pane-north open']
Click Button xpath=//div[1]/table/tbody/tr/td[3]/table/tbody/tr[2]/td/a[@class='siLink1']
No comments:
Post a Comment