w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
676 stars 190 forks source link

HOW TO PERFORM SCROLL IN APPIUM PYTHON #1699

Closed ghost closed 1 year ago

ghost commented 1 year ago

actions.w3c_actions.pointer_action.move_to_location([object Object], undefined) ^^^^^^^^^^^^^ SyntaxError: invalid syntax. Perhaps you forgot a comma?

I'm not able to perform in pycharm on appium screenSRT

actions = ActionChains(driver) actions.w3c_actions = ActionBuilder(driver, mouse=PointerInput(interaction.POINTER_TOUCH, "touch")) actions.w3c_actions.pointer_action.move_to_location([object Object], undefined) actions.w3c_actions.pointer_action.pointer_down() actions.w3c_actions.pointer_action.move_to_location(undefined, undefined) actions.w3c_actions.pointer_action.release() actions.perform()

ghost commented 1 year ago

TO PERFORM scrollup WE HAVE TO CLICK ON ATTACH TO SESSION THEN ENTER SESSION ID SHOULD BE THERE THEN CLICK ON ATTACH TO SESSION AND CLICK ON SWIPE THEN POINT WHERE YOU WANT TO SWIPE LIKE DOWN CLICK AND POINT IT [START X,Y] AND CLICK ON UP [END X,Y]

scroll [TO SWIPE DOWN TO UP]

actions = TouchAction(driver) actions.press(x=487,y=704).move_to(x=459,y=210).release().perform() START (X,Y) END(X,Y)