Enhance test execution with interactive controls; add pause, step, and dump functionalities in executor.js, and update step1.test for improved form handling and scrolling behavior.
This commit is contained in:
62
step2.test
Normal file
62
step2.test
Normal file
@@ -0,0 +1,62 @@
|
||||
use "Chrome"
|
||||
|
||||
# Part 3 - Login to the email account
|
||||
open "https://mail.growbnb.de/"
|
||||
sleep 100 "page load"
|
||||
wait element=input name="_user" id="rcmloginuser"
|
||||
fill element=input name="_user" id="rcmloginuser" value="autotest@growheads.de"
|
||||
sleep 100 "username fill"
|
||||
wait element=input name="_pass" id="rcmloginpwd"
|
||||
fill element=input name="_pass" id="rcmloginpwd" value="$PASSWORDMAIL"
|
||||
sleep 100 "password fill"
|
||||
wait element=button type="submit" id="rcmloginsubmit"
|
||||
click element=button type="submit" id="rcmloginsubmit"
|
||||
sleep 100 "login submit"
|
||||
# Wait for and click on the Bestellbestätigung link
|
||||
wait element=a childText="Bestellbestätigung"
|
||||
click element=a childText="Bestellbestätigung"
|
||||
|
||||
|
||||
# Click on "Mehr" button to open dropdown menu
|
||||
wait element=a id="messagemenulink"
|
||||
click element=a id="messagemenulink"
|
||||
sleep 300 "mehr button click"
|
||||
|
||||
# Click on "In neuem Fenster öffnen" link
|
||||
wait element=a id="rcmbtn134"
|
||||
click element=a id="rcmbtn134"
|
||||
|
||||
# Switch to the new window that was opened
|
||||
follow
|
||||
|
||||
# Verify that "Musteranmerkung" exists in the content
|
||||
wait element=p childText="Musteranmerkung"
|
||||
|
||||
# Extract the order URL from the link
|
||||
extract href from element=a childText="https://dev.seedheads.de/profile#W-" to "ORDER_URL"
|
||||
|
||||
wait element=a id="rcmbtn105"
|
||||
click element=a id="rcmbtn105"
|
||||
sleep 300 "email deleted"
|
||||
|
||||
# Now open the extracted URL
|
||||
open "$ORDER_URL"
|
||||
wait element=input type="email"
|
||||
fill element=input type="email" value="autotest@growheads.de"
|
||||
sleep 200 "email fill"
|
||||
wait element=input type="password"
|
||||
fill element=input type="password" value="$PASSWORD"
|
||||
sleep 200 "password fill"
|
||||
wait element=button childText="ANMELDEN" class="MuiButton-fullWidth"
|
||||
click element=button childText="ANMELDEN" class="MuiButton-fullWidth"
|
||||
sleep 300 "anmelden click"
|
||||
wait element=button childText="Schließen"
|
||||
click element=button childText="Schließen"
|
||||
sleep 100 "schließen click"
|
||||
wait element=button class="MuiIconButton-colorError"
|
||||
click element=button class="MuiIconButton-colorError"
|
||||
sleep 100 "stornieren click"
|
||||
wait element=button childText="Stornieren"
|
||||
#click element=button childText="Stornieren"
|
||||
sleep 100 "stornieren click"
|
||||
sleep 10000 "completed"
|
||||
Reference in New Issue
Block a user