Giter VIP home page Giter VIP logo

Comments (4)

scsmith5593 avatar scsmith5593 commented on August 20, 2024 1

Hi,

I tried it out and it works just as expected--thanks! Very helpful.

from katalon-mobile-util.

ctrevarthen avatar ctrevarthen commented on August 20, 2024

Hi @scsmith5593 ,

Thanks for reaching out!

The apps I've been testing have the labels as text, instead of images, so when the library looks for labels, it's assuming text.

We should be able to add functionality to look at the element type when an existing Test Object is provided.

from katalon-mobile-util.

scsmith5593 avatar scsmith5593 commented on August 20, 2024

Hi, Chris,

Got it. I thought that might be the case. Thanks.

from katalon-mobile-util.

ctrevarthen avatar ctrevarthen commented on August 20, 2024

Hi @scsmith5593 ,

If you want to check out version 1.13.0, I think it will address the issue you saw with finding image elements at an index: https://github.com/detroit-labs/katalon-mobile-util/releases/tag/1.13.0

https://github.com/detroit-labs/katalon-mobile-util#finding-an-element-from-a-list-by-index

Specifically, now you would use something like this:

import com.detroitlabs.katalonmobileutil.testobject.TestObjectType

int index = 3 // first element in the list is at index 1, so this gets the 3rd element
TestObject imageAtIndex = Finder.findElementAtIndex(TestObjectType.IMAGE, 'Generic image element', index) 

Please let me know if you have any issues getting this to work for your situation.

from katalon-mobile-util.

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.