Git Product home page Git Product logo

Comments (17)

dostrander avatar dostrander commented on August 23, 2024 2

Got it, let me look into this a bit

from kif.

dostrander avatar dostrander commented on August 23, 2024

@alekkania have you or anyone else seen this on CI or is this mostly only local?

from kif.

alekkania avatar alekkania commented on August 23, 2024

@dostrander Yes it happen on CI as well.

from kif.

dostrander avatar dostrander commented on August 23, 2024

@alekkania is this just return nil or is it also giving you an error in the test when calling waitForView?

Also if you have a repro project and/or code that'd be super helpful

from kif.

alekkania avatar alekkania commented on August 23, 2024

@dostrander It seems that default timeout is not enough. I've forked KIF repo and change waitForView timeout to 200 seconds. It solved the issue with single tests but run in group still fails - stuck on waiting for view and fail in the end.

from kif.

dostrander avatar dostrander commented on August 23, 2024

@alekkania Would you be able to create a test to try to repro this in the KIF project and send over the branch? I am having trouble reproing it on my machine using beta 5

from kif.

argneshu avatar argneshu commented on August 23, 2024

Hi any update around this bug, are we fixing it? we are facing the same issue with Xcode 13

from kif.

dostrander avatar dostrander commented on August 23, 2024

@argneshu I haven't been able to repro on my end, is there a small project and/or peice of code you could put together that repros semi consistently. If it makes it easier adding a test to the KIF test suite might be easiest

from kif.

alekkania avatar alekkania commented on August 23, 2024

@dostrander Sorry I can't share the project.
I've tested in on new project with collection view and it seems to work but I have very simple cells and views there :/

from kif.

dostrander avatar dostrander commented on August 23, 2024

@alekkania is it always tableviews or collection views? Does it sometimes happen on other views as well or is it pretty particular to those?

from kif.

argneshu avatar argneshu commented on August 23, 2024

@dostrander
Sorry I cannot provide the exact code but below type of method we are using of KIFTestActor in our scripts

tester().text(from: tester().waitForView(withAccessibilityLabel: "locatorString"))
tester().text(from: tester().waitForView(withAccessibilityLabel: "locatorString", traits: UIAccessibilityTraits.staticText))
tester().text(from: tester().waitForView(withAccessibilityLabel: "locatorString")) as? UILabel

We were using tester().text(from: tester().waitForView(withAccessibilityLabel: "locatorString")) to fetch the text from accessibility element having traits as static text and we were able to fetch the text

But after upgrading to Xcode 13 its returning null value, we tried other workaround but no success till now

Label which I was trying to access is inside a CollectionItem, which is inside a UITableView

Hierarchy is like
UITableView > UITableViewCell > UITableViewCellContentView > UILabel(Trait -> Static Text)

from kif.

alekkania avatar alekkania commented on August 23, 2024

@dostrander Yes it seems to be on table/collectionview always. I think that this is similar issue to @argneshu and #1240 this one.

from kif.

dostrander avatar dostrander commented on August 23, 2024

@alekkania @argneshu could you check against #1241 and see if that fixes your issue?

from kif.

argneshu avatar argneshu commented on August 23, 2024

@alekkania : yes it worked for us, thank you 👍

from kif.

alekkania avatar alekkania commented on August 23, 2024

@dostrander It works for us as well. Thank you!

from kif.

dostrander avatar dostrander commented on August 23, 2024

Fixed in #1241

from kif.

dostrander avatar dostrander commented on August 23, 2024

This has been released with 3.8.4

from kif.

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.