Skip to content
Snippets Groups Projects
Commit 7f266228 authored by M3079's avatar M3079
Browse files

test update

parent 0f99237d
No related branches found
No related tags found
No related merge requests found
Pipeline #66270 failed
*** Settings ***
Documentation Test suite for leaflet write text feature.
Resource resource.robot
Suite Setup Open Browser To Login Page
Suite Teardown Close Browser
*** Test Cases ***
Write Text
Valid Login
Select Game
Write Text
*** Keywords ***
Valid Login
# Input Username ville #${VALID USER}
Input Username ${VALID USER}
Input Password ${VALID PASSWORD}
Submit Credentials Login
...@@ -307,39 +307,11 @@ Map Movement ...@@ -307,39 +307,11 @@ Map Movement
# Leaflet write text # Leaflet write text
Write Text Write Text
# Select Game
Click Element css=a[class=leaflet-draw-draw-textbox] Click Element css=a[class=leaflet-draw-draw-textbox]
Click Element At Coordinates css=div[class=leaflet-control-container] 100 300 Click Element At Coordinates css=div[class=leaflet-control-container] 50 500
Input Text css=div[placeholder="Click out to save"] Hello Press Key css=div[placeholder="Click out to save"] Hello :) #Press Key is deprecated in seleniumlibrary 4.0 use Press Keys instead.
Click Element At Coordinates css=div[class=leaflet-control-container] 100 400 Click Element At Coordinates css=div[class=leaflet-control-container] 100 400
Element Text Should Be css=div[placeholder="Click out to save"] Hello #Checks that the text is right. Element Text Should Be css=div[placeholder="Click out to save"] Hello :) #Checks that the text is right.
Sleep 2
Click Element css=a[class=leaflet-draw-draw-textbox]
Click Element At Coordinates css=div[class=leaflet-control-container] 100 500
Sleep 4
Input Text css=div[placeholder="Click out to save"] 12345
Click Element At Coordinates css=div[class=leaflet-control-container] 100 400
Element Text Should Be css=div[placeholder="Click out to save"] 12345
:FOR ${i} IN RANGE 1000
\ ${status} ${value} = Run Keyword And Ignore Error Page Should Contain Element id={i}
\ Run Keyword if '${status}'=='PASS' Log {i}
# :FOR ${i} IN RANGE 1000
# \ Run Keyword if 'id={i}'=='PASS'
# \ Run Keyword if '{i}'=='5' Log ${i}
# Click Element css=a[class=leaflet-draw-edit-edit]
# Mouse Down class:leaflet-marker-icon:first-of-type
# Sleep 2
# Mouse Up class:leaflet-tile-loaded:nth-child(4)
# Sleep 2
# Click Leaflet Panel Save changes
# Sleep 2
# Click Element css=a[class=leaflet-draw-edit-edit]
# Mouse Down class:leaflet-marker-icon:first-of-type
# Mouse Up class:leaflet-tile-loaded:nth-child(1)
# Sleep 2
# Click Leaflet Panel Cancel editing, discards all changes
# Sleep 2
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment