This repository has been archived by the owner on Oct 23, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kitti Onthong
committed
Oct 16, 2018
1 parent
2702110
commit 46ea726
Showing
4 changed files
with
4,731 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.