Closed aryalakshmi closed 2 years ago
I am using appium 1.8.2-beta. i get below error when using Tap code: Tap selector
value":"-[NSNull floatValue]: unrecognized selector sent to instance 0x1d583d9b0\n\n(\n\t0 CoreFoundation 0x00000001a589beb8
[MJSONWP] Encountered internal error running command: Error: An unknown server-side error occurred while processing the command
I have written the below code sinppet to execute a javascript and then call it inside the robotframework. from appium import webdriver def test_tap(app, action): print "Hi" app.execute_script(action)
app is the appiumsession id and action is document.querySelectorAll("element")[0].tap();
The code returns error unicode' object has no attribute execute_script. Has anyone seen this before?
The IOS device you should be testing? You can modify robotframework-appiumlibrary source,Add method tap_for_ios to _touch.py($Python Path/site-packages/AppiumLibrary/keywords/_touch.py)
def tap_for_ios(self,locator,x_offset=0, y_offset=0, count=1)):
el = self._element_find(locator, True, True)
params=dict()
params["x"]= float(x_offset)
params["y"]= float(y_offset)
params["element"]=el.id
application = self._current_application()
application.execute_script("mobile: tap", params);
thanks a lot. will this work for webview also? i assume we need to give coordinates for webview click also right?
@yst8493182 if this applies to all , do you have a pull request ?
Please check #363 for new tap implementation
Hi,
I am unable to use Tap in appiumlibrary for webelements in robot framework. Can you please suggest some examples on how to use it.
Thanks, Arya