Browse Source

wait until page is ready before taking screenshot

Daniel Sheffield 1 year ago
parent
commit
c8904cd648
2 changed files with 4 additions and 1 deletions
  1. 2 0
      Download Statements.robot
  2. 2 1
      run.sh

+ 2 - 0
Download Statements.robot

@@ -118,6 +118,8 @@ Capture Account Balances
         ${account}=    Convert To Uppercase    ${account}
         Wait Until Keyword Succeeds    2x    5 seconds
         ...    Page Should Contain    ${account}
+        Wait Until Keyword Succeeds    2x    5 seconds
+        ...    Page Should Contain    current balance
     END
     Take Screenshot
 

+ 2 - 1
run.sh

@@ -1 +1,2 @@
-/usr/bin/python3 -m robot.run -T --dotted --outputdir /tmp Download\ Statements.robot 
+WD=$(dirname "${BASH_SOURCE[0]}")
+/usr/bin/python3 -m robot.run -T --dotted --outputdir /tmp ${WD}/Download\ Statements.robot