| ValueError: Element locator 'id=v_languages' did not match any elements. |
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
>>>>send an email to robotframework-users+unsub...@googlegroups.com.
>>>>To post to this group, send email to
>>>>Visit this group at
>>>>https://groups.google.com/group/robotframework-users.
>>>>For more options, visit https://groups.google.com/d/optout.
>>>
>>>--
>>>You received this message because you are subscribed to the Google
>>>Groups "robotframework-users" group.
>>>To unsubscribe from this group and stop receiving emails from it, send
>>>an email to robotframework-users+unsub...@googlegroups.com.
>>>To post to this group, send email to
Ugh
It depends what you want to do. That selector, text inside of the outermost parentheses, is valid Android uiautomator selector and you should be able to use it with any keyword which accepts uiautomator selectors. All the scrolling logic happens inside of the Android uiautomator and it should not matter what action you/keyword performs when the element is visible.
-Tatu
>>>>send an email to robotframework-u...@googlegroups.com.
>>>>To post to this group, send email to
>>>>Visit this group at
>>>>https://groups.google.com/group/robotframework-users.
>>>>For more options, visit https://groups.google.com/d/optout.
>>>
>>>--
>>>You received this message because you are subscribed to the Google
>>>Groups "robotframework-users" group.
>>>To unsubscribe from this group and stop receiving emails from it, send
>>>an email to robotframework-u...@googlegroups.com.
>>>To post to this group, send email to
>>>Visit this group at
>>>https://groups.google.com/group/robotframework-users.
>>>For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
>>>>send an email to robotframework-users+unsub...@googlegroups.com.
>>>>To post to this group, send email to
>>>>robotframe...@googlegroups.com.
>>>>Visit this group at
>>>>https://groups.google.com/group/robotframework-users.
>>>>For more options, visit https://groups.google.com/d/optout.
>>>
>>>--
>>>You received this message because you are subscribed to the Google
>>>Groups "robotframework-users" group.
>>>To unsubscribe from this group and stop receiving emails from it, send
>>>an email to robotframework-users+unsub...@googlegroups.com.
>>>To post to this group, send email to
>>>robotframe...@googlegroups.com.
>>>Visit this group at
>>>https://groups.google.com/group/robotframework-users.
>>>For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
def scroll_to(text):
get_driver_instance().find_element_by_android_uiautomator(
"new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView("
"new UiSelector().textContains(\""+text+"\").instance(0))")
Hi Tanu,
>>>>send an email to robotframework-u...@googlegroups.com.
>>>>To post to this group, send email to
>>>>robotframe...@googlegroups.com.
>>>>Visit this group at
>>>>https://groups.google.com/group/robotframework-users.
>>>>For more options, visit https://groups.google.com/d/optout.
>>>
>>>--
>>>You received this message because you are subscribed to the Google
>>>Groups "robotframework-users" group.
>>>To unsubscribe from this group and stop receiving emails from it, send
>>>an email to robotframework-u...@googlegroups.com.
>>>To post to this group, send email to
>>>robotframe...@googlegroups.com.
>>>Visit this group at
>>>https://groups.google.com/group/robotframework-users.
>>>For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

from robot.libraries.BuiltIn import BuiltIn
def get_driver_instance():
driver = BuiltIn().get_library_instance('AppiumLibrary')
return driver._current_application()
import os
from appium import webdriver
from robot.libraries.BuiltIn import BuiltIn
from appium.webdriver.common.touch_action import TouchAction
class Andy():
desired_caps = {
'appPackage': 'com.pision.debug',
'appActivity': 'com.pision.android.activities.Splash',
'platformName': 'Android',
'platformVersion': 6,
'deviceName': 'SORS9LY54HEA4SFE',
'app': ('/Users/reenupanwar/Desktop/AppBuild/P20190211.apk')
}
APPIUM_LOCAL_HOST_URL = 'http://localhost:4723/wd/hub'
driver = webdriver.Remote(APPIUM_LOCAL_HOST_URL, desired_caps)
actions = TouchAction(driver)
def get_driver_instance(self):
driver = BuiltIn().get_library_instance('AppiumLibrary')
return driver._current_application()
def scroll_to(xpath):
xpath="xpath=//android.widget.TextView[@text='Check this out']"
get_driver_instance().find_element_by_android_uiautomator(
"new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView("
"new UiSelector().textContains(\"" + xpath + "\").instance(0))")
Hi Tanu,
>>>>send an email to robotframework-users+unsub...@googlegroups.com.
>>>>To post to this group, send email to
>>>>robotframe...@googlegroups.com.
>>>>Visit this group at
>>>>https://groups.google.com/group/robotframework-users.
>>>>For more options, visit https://groups.google.com/d/optout.
>>>
>>>--
>>>You received this message because you are subscribed to the Google
>>>Groups "robotframework-users" group.
>>>To unsubscribe from this group and stop receiving emails from it, send
>>>an email to robotframework-users+unsub...@googlegroups.com.
>>>To post to this group, send email to
>>>robotframe...@googlegroups.com.
>>>Visit this group at
>>>https://groups.google.com/group/robotframework-users.
>>>For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--FG--FG
Hi Tanu,
>>>>send an email to robotframework-u...@googlegroups.com.
>>>>To post to this group, send email to
>>>>robotframe...@googlegroups.com.
>>>>Visit this group at
>>>>https://groups.google.com/group/robotframework-users.
>>>>For more options, visit https://groups.google.com/d/optout.
>>>
>>>--
>>>You received this message because you are subscribed to the Google
>>>Groups "robotframework-users" group.
>>>To unsubscribe from this group and stop receiving emails from it, send
>>>an email to robotframework-u...@googlegroups.com.
>>>To post to this group, send email to
>>>robotframe...@googlegroups.com.
>>>Visit this group at
>>>https://groups.google.com/group/robotframework-users.
>>>For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
----FG--FG
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
| Swipe Up | |
| ${element_size}= Get Element Size id=sample_content_fragment | |
| ${element_location}= Get Element Location id=sample_content_fragment | |
| ${start_x}= Evaluate ${element_location['x']} + (${element_size['width']} * 0.5) | |
| ${start_y}= Evaluate ${element_location['y']} + (${element_size['height']} * 0.7) | |
| ${end_x}= Evaluate ${element_location['x']} + (${element_size['width']} * 0.5) | |
| ${end_y}= Evaluate ${element_location['y']} + (${element_size['height']} * 0.3) | |
| Swipe ${start_x} ${start_y} ${end_x} ${end_y} 500 | |
| Sleep 1 |