Coder Social home page Coder Social logo

Comments (8)

jollychang avatar jollychang commented on June 18, 2024

you can use Swipe

from robotframework-appiumlibrary.

Sumeet90 avatar Sumeet90 commented on June 18, 2024

But how to get text of an element ???

from robotframework-appiumlibrary.

jollychang avatar jollychang commented on June 18, 2024

try this?

from robotframework-appiumlibrary.

Sumeet90 avatar Sumeet90 commented on June 18, 2024

Thank you so much for replying ...

I am using same library but there is no keyword for fetch text value like 'Get Text'.

from robotframework-appiumlibrary.

pandabat avatar pandabat commented on June 18, 2024

Indeed there isn't.

I tried the suggested keyword and no joy. Basically, if we have something like this in an Android app:

17:54

Tuesday 1 March 2016

I want to be able to get the text "Tuesday 1 March 2016" (or whatever value it has at the time).

Using "Element Name Should Be" and "Element Value Should Be", I get fail result "Element 'css=#home-time' name should be 'Tuesday 1 March 2016' but it is 'None'."

Using " Element Attribute Should Match, css=#home-time, text, Tues* ", I get TypeError: expected string or buffer.

Can't seem to get actual text values like with the Get Text keyword in, say, Selenium2Library

from robotframework-appiumlibrary.

pandabat avatar pandabat commented on June 18, 2024

Raising again in Getting Elements Text Attribute #98

from robotframework-appiumlibrary.

pandabat avatar pandabat commented on June 18, 2024

You can edit your _elements.py and add something like:

def get_element_text(self, locator):
element = self._element_find(locator, True, True)
element_text = element.text
self._info("Element '%s' text: %s " % (locator, element_text))
return element_text

Should work until they add something official

from robotframework-appiumlibrary.

nam-edi avatar nam-edi commented on June 18, 2024

how does one go because the changes I make are not reflected in robot-framework

I added the keyword in _elements.py but robot framework does not recognize

from robotframework-appiumlibrary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.