I’m learning and writing a script to test an iOS app by using a selenium python script with Appium.
But between two button taps/click some time it can be a little bit long, between each execution.
driver.find_element_by_accessibility_id("Product_Purchase_Button").click()
time.sleep(0.8)#loading page
driver.find_element_by_accessibility_id("Check_Box_Button").click()
driver.find_element_by_accessibility_id("Buy_Now_Button").click()
I would like to know if I can optimize this part of my code, to click/tap instantly the buttons.
Thank you