Skip to content

Instantly share code, notes, and snippets.

View robot1.robot
*** Settings ***
Library Selenium2Library
*** Test Cases ***
กรณีไม่ใช้ 4 คำสั่งใน Settings
Open Browser ${URL_GOOGLE} ${BROWSER}
Input Text id = search robotframework
Click Element id = btn-search
Close Browser
View robot2.robot
*** Settings ***
Library Selenium2Library
Suite Setup Open Browser ${URL_GOOGLE} ${BROWSER}
Suite Teardown Close Browser
*** Test Cases ***
กรณีใช้คำสั่งใน Settings
Input Text id = search robotframework
Click Element id = btn-search
View robot3.robot
*** Settings ***
Library Selenium2Library
Suite Setup Open Browser www.google.com Chrome
Test Setup Click Element id = gb_70 #ปุ่ม ลงชื่อเข้าสู่ระบบ
Test Teardown Go To www.google.com
Suite Teardown Close Browser
*** Test Cases ***
กรอก email ไม่พบบัญชี
Input Text id = identifierId .example@gmail.com
View robot3.robot
*** Settings ***
Library Selenium2Library
Library String
Suite Setup Open Browser www.google.com Chrome
Test Setup Click Element id = gb_70 #ปุ่ม ลงชื่อเข้าสู่ระบบ
Test Teardown Go To www.google.com
Suite Teardown Close Browser
*** Test Cases ***
กรอก email ไม่พบบัญชี