Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Tomáš Kohout
    @tkohout
    I am looking for quick and dirty fix for now
    Tomáš Kohout
    @tkohout
    @JoeSSS I would have another question about support for SwiftUI. I have found that you can use device_agent directly (https://www.rubydoc.info/gems/calabash-cucumber/Calabash/Cucumber/DeviceAgent) but I don't see any way to e.g. scroll to some view with accessibility id, swipe and other helpful stuff. Do you think it's viable to use calabash for SwiftUI?
    Serghei Moret
    @JoeSSS
    there is only one way to find the none swift UI elements and scroll to them, but it is more like a hack. To swipe to the SwiftUI element you need to create a helper that will swipe and check the element on the screen. We use swift UI in our APP and Calabash is perfectly interacting with that, with just loose of some convenient helpers
    Tomáš Kohout
    @tkohout
    cool, can I find the scrolling hack somewhere?
    Serghei Moret
    @JoeSSS
    I meant that the method that currently exists for normal UI elements is a hack) To enable a proper element search you need some loop with scrolling and asserting for element existence
    while device_agent.query({ id: ’swift ui element’ }).empty?
       swipe :down
       sleep 0.3
    end
    something like this, but this is very basic and need proper error handling / possible endless scrolling handling
    Serghei Moret
    @JoeSSS
    can be wrapped around a timeout ^ Timeout.timeout(60) {}
    Tomáš Kohout
    @tkohout
    thanks @JoeSSS that looks promising
    Tomáš Kohout
    @tkohout
    @JoeSSS did you by any chance encounter this error? It started popping up when trying to run tests on different physical devices (various iOSes as well) and for different members of team just this week. It crashes on installing the device runner on device. Not sure how could I debug this. Could it be maybe that the DeviceAgent provisioning has expired or something like that?
    There was an error executing:
    
          /Users/tomaskohout/.rvm/gems/ruby-2.6.3/gems/run_loop-4.5.7/lib/run_loop/device_agent/bin/iOSDeviceManager install /Users/tomaskohout/.rvm/gems/ruby-2.6.3/gems/run_loop-4.5.7/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app --device-id xxxxxxxxx
    
          The command generated this output:
    
          2021-09-16 11:52:43.185 iOSDeviceManager[61023:3438868] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSSingleObjectArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
          *** First throw call stack:
          (
              0   CoreFoundation                      0x00007fff2088b98b __exceptionPreprocess + 242
              1   libobjc.A.dylib                     0x00007fff205c3d92 objc_exception_throw + 48
              2   CoreFoundation                      0x00007fff207bcdd6 -[__NSArrayM copyWithZone:] + 0
              3   FBControlCore                       0x000000010cf4a879 -[FBOSVersion number] + 137
              4   FBControlCore                       0x000000010cf76849 FBiOSTargetComparison + 393
              5   FBDeviceControl                     0x000000010d052c54 -[FBDevice compare:] + 52
              6   CoreFoundation                      0x00007fff207f924a __CFSimpleMergeSort + 81
              7   CoreFoundation                      0x00007fff207f916d CFSortIndexes + 397
              8   CoreFoundation                      0x00007fff20812656 -[NSArray sortedArrayFromRange:options:usingComparator:] + 628
              9   CoreFoundation                      0x00007fff208122ab -[NSArray sortedArrayUsingSelector:] + 136
              10  FBDeviceControl                     0x000000010d050284 -[FBDeviceSet allDevices] + 148
              11  FBDeviceControl                     0x000000010d050033 -[FBDeviceSet query:] + 163
              12  FBDeviceControl                     0x000000010d05015c -[FBDeviceSet deviceWithUDID:] + 188
              13  iOSDeviceManager                    0x000000010cea0d14 +[PhysicalDevice withID:] + 154
              14  iOSDeviceManager                    0x000000010cea996c +[Device withID:] + 118
              15  iOSDeviceManager                    0x000000010ceacbf8 +[Command deviceFromArgs:] + 127
              16  iOSDeviceManager                    0x000000010cea42e1 +[InstallAppCommand execute:] + 315
              17  iOSDeviceManager                    0x000000010ceaf72f +[CLI process:] + 1101
              18  iOSDeviceManager                    0x000000010ce9b269 main + 121
              19  libdyld.dylib                       0x00007fff20733f3d start + 1
          )
    NancyMCP
    @NancyMCP
    Hi, with the upgrade to Xcode13 and iOS15, we're seeing a 'Location Disabled - please enable the precise location permission in Settings > Privacy > Location Services' alert which cannot being dismissed, and some of our tests are failing. Is there a solution for this issue? Thanks in advance.
    Serghei Moret
    @JoeSSS
    run-loop with Xcode and iOS 15 support is released
    AqaSquad
    @AqaSquad
    awesome, thanks!
    Tomáš Kohout
    @tkohout
    @JoeSSS thanks! I am just testing it. Do you know if it should work on physical devices? Can't get it to work on device with iOS 15 nor iOS 14.8.
    Serghei Moret
    @JoeSSS
    hey, sorry, we are not really looking after the physical devices. The agreement in my company is that we may only contribute to something affecting our work, but we do not run on real devices
    Tomáš Kohout
    @tkohout
    @JoeSSS I understand, thanks :)
    Serghei Moret
    @JoeSSS
    calabash-ios gem and a new server have been released, this should fix a couple of iOS 15 issues
    AqaSquad
    @AqaSquad
    @tkohout what is the issue you're seeing running on real devices? I have been able to run on 14.x and initial tests with iOS15 on real devices seemed to work.
    Julien
    @LiohAu
    why is it so slow to launch the app on simulators?
    AqaSquad
    @AqaSquad
    @JoeSSS is there a calabsh-ios-version 0.23.1 coming up? we noticed we're having some build failures with 0.23 related to arm64 links missing. Was hoping this would help. calabash/calabash-ios-server#473
    Serghei Moret
    @JoeSSS
    there was a small bug that enabled code coverage for the last version.
    which should be fixed by ^
    AqaSquad
    @AqaSquad
    that release is not available for download yet though, correct? pr still needs to be reviewed/merged?
    Serghei Moret
    @JoeSSS
    there are conflicts
    and I do not have any channel where I can speak with MS people :)
    in meanwhile I fixed the arm64 problem by adding
    OTHER_LDFLAGS = (
                        "$(inherited)",
                        "-fprofile-arcs",
                    );
    to our project
    AqaSquad
    @AqaSquad
    oh interesting
    we'll give that a shot
    thank you
    Serghei Moret
    @JoeSSS
    there was a new 0.23.1 (pod version is 0.23.2 because of gem version) version of calabash server release with podfile. You can also build it on your own from: https://github.com/calabash/calabash-ios-server/tree/release/0.23.1
    AqaSquad
    @AqaSquad
    that won't be donwloadable via calabash-ios download, correct? it would have to be pulled via cocoapods or self-built?
    Serghei Moret
    @JoeSSS
    it should work using 0.23.2 calabash-cucumber gem
    AqaSquad
    @AqaSquad
    awesome, thanks. we'll try it out.
    Serghei Moret
    @JoeSSS
    at least from what I read in the code :) it downloads the server from the gem itself, and it is packed there in 0.23.2
    AqaSquad
    @AqaSquad
    ah i see
    shravya25
    @shravya25:matrix.org
    [m]
    Hi, I'm trying to test webpage with calabash when i try to query("WKWebView css:'*'") in console it is returning null response.Can any one help me with this
    Serghei Moret
    @JoeSSS
    are you sure it is WKWebView that yoyu having in the app?
    shravya25
    @shravya25:matrix.org
    [m]
    No How to check it out whether i have WKWebView in the app
    Serghei Moret
    @JoeSSS
    asking a developer, looking into element inspector in xcode. Btw, is the webview inside your app? Because outsite of application under test - calabash will not see anything
    shravya25
    @shravya25:matrix.org
    [m]
    Web view is inside my app
    shravya25
    @shravya25:matrix.org
    [m]
    I have checked it with appium inspector it is returning XCUIElementTypeWebView
    Serghei Moret
    @JoeSSS
    did you try WebView ?
    shravya25
    @shravya25:matrix.org
    [m]
    yes i got null response
    query("WebView css:'*'")
    []
    Rao, Raamoji
    @raenug451_comcast
    Is there calabash support for tvOS?
    Manikandan M G
    @mgmanikandan87
    @all - i am looking ios sdet in bangalore location for PhonePe Org, if any interested please do share your resume to me mgmanikandan87@gmail.comOr ping me 1:1, experience looking for 3-7 years
    Raamoji Rao
    @raamojirao
    Hello! Touch seems off target in landscape orientation. It works perfectly fine on portrait mode. Looks like touch is not using right co-ordinates to tap on the element in landscape mode. I am seeing this on real iOS device.
    iPad - OS version 14.8 and 15.3
    run_loop - 4.7.0
    calabash-cucumber - 0.23.4
    could someone please help!