Skip to content

Instantly share code, notes, and snippets.

Avatar

Atthaboon Sanurt (P'Art) atthaboon

View GitHub Profile
View demo-element-property-text.robot
Element should containt text
Element Should Contain id=prop-text Please ${True}
Element should not contain text
Element Should Not Contain id=prop-text Please input2 ${True}
Element text should be
Element Text Should Be id=prop-text Please input ${True}
Element text should not be
View demo-element-property-visible.robot
Element is visible and not visible
Element Should Be Visible id:prop-visible
Element Should Not Be Visible id:prop-hide
Run Keyword And Expect Error REGEXP:Element 'id:prop-hide' is not be visible Element Should Be Visible id:prop-hide
View demo-element-property-enable-disable.robot
Element proprty is enable
Element Should Be Enabled id:prop-enable
Element property is disable
Element Should Be Disabled id:prop-disable
Run Keyword And Expect Error REGEXP:Element 'id:prop-enable' is enabled Element Should Be Disabled id:prop-enable
View demo-debug-mode.robot
*** Settings ***
Library PuppeteerLibrary
Test Teardown Close All Browser
Suite Teardown Close Puppeteer
*** Test Cases ***
Enable debug mode
Enable Debug Mode
Open browser to test page http://127.0.0.1:7272/login-form-example.html
View demo-alert-handler.robot
*** Settings ***
Library PuppeteerLibrary
Test Teardown Close All Browser
Suite Teardown Close Puppeteer
*** Test Cases ***
Accept alert
&{options} = create dictionary headless=${False}
Open browser http://127.0.0.1:7272/basic-html-elements.html options=${options}
Run Async Keywords
View demo-browser-management.robot
*** Settings ***
Library PuppeteerLibrary
Suite Teardown Close Puppeteer
*** Test Cases ***
Switch to new browser
&{options} = create dictionary headless=${False}
Open browser http://127.0.0.1:7272/basic-html-elements.html options=${options}
Run Async Keywords
... Wait For New Window Open AND
View demo-form-submit-async.robot
*** Settings ***
Library PuppeteerLibrary
*** Test Cases ***
Submit login form
&{options} = create dictionary headless=${False}
Open browser http://127.0.0.1:7272/login-form-example.html options=${options}
Input Text id=exampleInputEmail1 demo@qahive.com
Input Text id=exampleInputPassword1 123456789
Click Element id=exampleCheck1
View demo-form-register.robot
*** Settings ***
Library PuppeteerLibrary
*** Test Cases ***
Submit register form
&{options} = create dictionary headless=${False}
Open browser http://127.0.0.1:7272/register-form-example.html options=${options}
Input Text id=inputEmail4 demo@qahive.com
Input Text id=inputPassword4 123456789
Input Text id=inputAddress 123/234 wallstreet std.
View demo-form-submit.robot
*** Settings ***
Library PuppeteerLibrary
*** Test Cases ***
Submit login form
&{options} = create dictionary headless=${False}
Open browser http://127.0.0.1:7272/login-form-example.html options=${options}
Input Text id=exampleInputEmail1 demo@qahive.com
Input Text id=exampleInputPassword1 123456789
@atthaboon
atthaboon / robot
Created Sep 9, 2020
Issue animation flaky test
View robot
*** Settings ***
Library PuppeteerLibrary
*** Test Cases ***
Demo issue animation flaky test
&{options} = create dictionary headless=${False}
Open Browser https://getbootstrap.com/docs/4.0/components/modal/ options=${options}
Run Async Keywords
... Click Element css=button[data-target="#exampleModalLive"] AND
... Wait Until Element Is Visible id=exampleModalLive