Giter Club home page Giter Club logo

Comments (3)

mykola-mokhnach avatar mykola-mokhnach commented on June 8, 2024

Message: Unknown mobile command "('mobile: doubleClickGesture', {'x': 100, 'y': 100})"

I assume there is an error in client arguments. the script itself should look like mobile: doubleClickGesture. The other part should belong to arguments. Do you follow the RF library documentation?

from appium.

hassineabd avatar hassineabd commented on June 8, 2024

after looking into the definition of the keyword "Execture script" it turn out that the issue is in the argument I passed to that keyword

works well with this function directly on to top of python :

def pinch_open_gesture():

built_in = BuiltIn()

appium_lib = built_in.get_library_instance('AppiumLibrary')

driver = appium_lib._current_application()

try:

    driver.execute_script('mobile: pinchOpenGesture', {

    'left': 200,

    'top': 800,

    'width': 1000,

    'height': 1000,

    'percent': 0.5,

    })

    logger.info("Zoom performed on the center of the screen")

except Exception as e:

    logger.error(f"Error in performing zoom: {e}")

    raise`

from appium.

mykola-mokhnach avatar mykola-mokhnach commented on June 8, 2024

Closed as not issue

from appium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.