0

I'm trying automate Mobile application using Appium Library in Robot Framework. Can anybody help me how to use java script for clicking on button.

5
  • 1
    What have you tried so far? Commented Dec 24, 2018 at 9:58
  • Is there anything you tried? It would be great to know what error are you facing. :) Commented Dec 24, 2018 at 9:58
  • @TobiasWilfert 1-Wait Until Element Is Visible 2-click element Commented Dec 24, 2018 at 10:03
  • @LubosJerabek the click passes correctly in the report but it does not click on the button in device Commented Dec 24, 2018 at 10:08
  • I have to do a test in the mobile application and check in another web application to open the chrome browser in the device but the problem my script is correct and he has to click on the button but it does not redirect to the page of acceuile Commented Dec 24, 2018 at 10:22

1 Answer 1

1

Try this:

http://serhatbolsu.github.io/robotframework-appiumlibrary/AppiumLibrary.html#Execute%20Script

Then you should be able to pass your JavaScript to this function, e.g.

Execute Script    document.getElementById("elementId").click()
Sign up to request clarification or add additional context in comments.

7 Comments

i have installed the last version of Appiumlibrary and the keyword not exist in this version i dont know why
Unknown keyword 'Execute Script' even the error message displayed it works thank you
WebDriverException: Message: Method is not implemented I am getting this error and script is failing
I am just running console log. like this : Execute Script console.log('hello') I also tried accessing DOM element but there is same error.
I rechecked my DOM ID and they are correct. Here you can check what exactly stackoverflow.com/questions/62052275/…
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.