Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Commit

Permalink
Added hello world robot framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitti Onthong committed Oct 16, 2018
1 parent 2702110 commit 46ea726
Show file tree
Hide file tree
Showing 4 changed files with 4,731 additions and 0 deletions.
37 changes: 37 additions & 0 deletions Robot/hello-word.robot
@@ -0,0 +1,37 @@
*** Settings ***
Library SeleniumLibrary
Suite Setup Open google.com by google chrome
Suite Teardown End Browser
Test Teardown Back to google.com
Test Template Search google by keyword
*** Variables ***
${GOOGLE URL} https://google.com
${WEB BROWSER} googlechrome

*** Keywords ***
Search google by keyword
[Arguments] ${KEYWORD}
Enter text in the search box ${KEYWORD}
Press the search button

Open google.com by google chrome
Open Browser ${GOOGLE URL} ${WEB BROWSER}
Wait Until Element Is Visible id=lst-ib

Enter text in the search box
[Arguments] ${KEYWORD}
Input Text id=lst-ib ${KEYWORD}

Press the search button
Press Key name=btnK 13
Click Button name=btnK

Back to google.com
Go To ${GOOGLE URL}

End Browser
Close Browser

*** Testcases ***
search-helloworld hello world
search-hacktoberfest Hacktoberfest-2018/Hello-world

0 comments on commit 46ea726

Please sign in to comment.