Javascript error while using elementswipe on iOS in Python


#1

Hey Guys!

I was going through really tough stuff, as I am unable to scroll to any particular element without using coordinates.
I have seen this method on “Appium Studio”,
driver.execute_script("client:elementSwipe(\"//*[@class='UIATable']\", \"Down\", 3000)")

its running fine on Studio, but not on Pycharm or any other IDE.
But showing Javascript exception on console i.e.
selenium.common.exceptions.WebDriverException: Message: javascript error (javascript error. ReferenceError: "elementSwipe" is not defined in <eval> at line number 1)

Kindly please someone help me with this. Also please let me know is there any method from which I can scroll to specific element.