For a webpage’s mobile version. It has a text area with a word counter, sendkeys() visually puts the text. but the word counter is still zero, and as soon as I click on another field, mentioned textarea’s goes blank.
I already tried using javascript, same result , visually gets filled but goes blank when going to another field.
Same webpage’s mobile version works fine on Android + Chrome.
Click the element then this:
from appium import webdriver
from selenium.webdriver.common.action_chains import ActionChains #Initial code to get to the web page
element=driver.find_element(“xpath”,’//textarea[@id=“textarea”]’)
element.click()
actions = ActionChains(driver)
actions.send_keys(“text to send”)
actions.perform()
driver.quit()
and I got this error: It is mandatory to have at least one gesture item defined for each action. Action with id ‘mouse’ contains none" UserInfo={NSLocalizedDescription=It is mandatory to have at least one gesture item defined for each action. Action with id ‘mouse’ contains none}