So, I want to use SeleniumLibrary’s keyword
Set Selenium Speed . which
Sets the delay that is waited after each Selenium command , but I guess it’s not possible, at best it would set a speed for Selenium commands, not the Appium ones, which are the ones I need to have a reduced speed.
Why is that? I am currently automating tests for registering in an Android app and I didn’t found something similar to
Set Selenium Speed in AppiumLibrary, but if I don’t use a lot of
Sleeps in between commands, Robot passes straight through some fields without sending text, and the test fails, I am basically searching for an alternative to Sleep.
Examplified bellow, in this code if I delete the Sleeps the test fails because
doc field doesn’t get filled:
Click Element xpath=//*[@index='2'] # Doc field #Wait Activity MainActivity timeout=2 interval=2 Sleep 1 Input Text xpath=//*[@index='2'] '41838086854' # Send valid doc number Sleep 1 Click Element xpath=//*[@index='3'] # Password field Sleep 1 Input Password xpath=//*[@index='3'] asdQWE123!@# #Send valid password Sleep 1 # Dá para usar o comando 'Click Text' tbm (experimentar depois) Click Element xpath=//android.widget.Button[@content-desc=\"LOGIN\"] #Login button Sleep 2 Wait Until Page Contains Element xpath=//android.widget.Button[@content-desc=\"GENERATE SECURITY CODE\"]