abdessamad
abdessamad

Reputation: 25

How to use javascript in my code using Appium library

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.

Upvotes: 0

Views: 1472

Answers (1)

Lubos Jerabek
Lubos Jerabek

Reputation: 833

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()

Upvotes: 1

Related Questions