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.
-
1What have you tried so far?Tobias– Tobias2018-12-24 09:58:32 +00:00Commented Dec 24, 2018 at 9:58
-
Is there anything you tried? It would be great to know what error are you facing. :)Lubos Jerabek– Lubos Jerabek2018-12-24 09:58:49 +00:00Commented Dec 24, 2018 at 9:58
-
@TobiasWilfert 1-Wait Until Element Is Visible 2-click elementabdessamad– abdessamad2018-12-24 10:03:58 +00:00Commented Dec 24, 2018 at 10:03
-
@LubosJerabek the click passes correctly in the report but it does not click on the button in deviceabdessamad– abdessamad2018-12-24 10:08:50 +00:00Commented 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 acceuileabdessamad– abdessamad2018-12-24 10:22:50 +00:00Commented Dec 24, 2018 at 10:22
Add a comment
|
1 Answer
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()
7 Comments
abdessamad
i have installed the last version of Appiumlibrary and the keyword not exist in this version i dont know why
abdessamad
Unknown keyword 'Execute Script' even the error message displayed it works thank you
Amit Gandole
WebDriverException: Message: Method is not implemented I am getting this error and script is failing
Amit Gandole
I am just running console log. like this : Execute Script console.log('hello') I also tried accessing DOM element but there is same error.
Amit Gandole
I rechecked my DOM ID and they are correct. Here you can check what exactly stackoverflow.com/questions/62052275/…
|