Test Google
This commit is contained in:
27
RobotSelenium/Techie/TestCases/Inputbox.robot
Normal file
27
RobotSelenium/Techie/TestCases/Inputbox.robot
Normal file
@ -0,0 +1,27 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
|
||||
*** Variables ***
|
||||
${browser} chrome
|
||||
${url} https://demo.nopcommerce.com/
|
||||
*** Test Cases ***
|
||||
TestingInputBox
|
||||
open browser ${url} ${browser}
|
||||
maximize browser window
|
||||
# komtrola viditelnosti titulku
|
||||
title should be nopCommerce demo store
|
||||
click link xpath://a[@class="ico-login"]
|
||||
${"email_txt"} set variable id:Email
|
||||
# zadaný email je vidět
|
||||
element should be visible ${"email_txt"}
|
||||
# email je povolený
|
||||
element should be enabled ${"email_txt"}
|
||||
# vyplníme proměnou email
|
||||
input text ${"email_txt"} superborec@gmail.com
|
||||
# počkáme 5 sekund
|
||||
sleep 5
|
||||
# vymažeme email
|
||||
clear element text ${"email_txt"}
|
||||
sleep 3
|
||||
close browser
|
||||
*** Keywords ***
|
8
RobotSelenium/Techie/TestCases/Radiobuttons.robot
Normal file
8
RobotSelenium/Techie/TestCases/Radiobuttons.robot
Normal file
@ -0,0 +1,8 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
|
||||
*** Variables ***
|
||||
${browser} chrome
|
||||
# web už je nefunkční
|
||||
${url} https://www.practiceselenium.com/practice-form.html
|
||||
# test na zaškrtávací políčka
|
@ -1,17 +1,22 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Test Timeout 2 minute
|
||||
|
||||
*** Variables ***
|
||||
${browser} chrome
|
||||
${url} https://demo.nopcommerce.com/
|
||||
|
||||
|
||||
|
||||
*** Test Cases ***
|
||||
LoginTest
|
||||
open browser https://demo.nopcommerce.com/ chrome
|
||||
click link xpath://a[@class="ico-login"]
|
||||
input text id:Email testing@gmail.com
|
||||
input text id:Password Test@123
|
||||
click element xpath://input[@class='button-1 Login-button']
|
||||
open browser ${url} ${browser}
|
||||
loginToApplication
|
||||
close browser
|
||||
|
||||
*** Keywords ***
|
||||
loginToApplication
|
||||
click link xpath://a[@class="ico-login"]
|
||||
input text id:Email testing@gmail.com
|
||||
input text id:Password Test@123
|
||||
click element xpath://button[@class='button-1 login-button']
|
Reference in New Issue
Block a user