Selaa lähdekoodia

Support Chrome/Firefox

Daniel Sheffield 3 vuotta sitten
vanhempi
sitoutus
094d6fb4f4
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      Download Statements.robot

+ 3 - 1
Download Statements.robot

@@ -181,7 +181,9 @@ Firefox Scroll Element Into View
 Scroll Account Into View
     [Documentation]    Assumes current page is Balances.
     [Arguments]    ${account}
-    Firefox Scroll Element Into View    link:${account}
+    ${is_firefox}=   Run Keyword And Return Status    Should Be Equal As Strings    ${BROWSER}    Firefox    ignore_case=yes
+    Run Keyword If    ${is_firefox}    Firefox Scroll Element Into View    link:${account}
+    Run Keyword Unless    ${is_firefox}   Scroll Element Into View    link:${account} 
 
 Capture Account Balances
     [Documentation]    Assumes current page is Balances.