locked
Error using DragCoordinates() or any Swipe() method (Cannot implicitly convert type void to object) RRS feed

  • Question

  • User331836 posted

    This is a new error that just started happening with my xamarin ui tests. I never had an issue before, but now whenever my tests hit anything that involves swiping or dragging the screen, this exception is thrown:

    System.Exception : Error while performing SwipeRightToLeft(All().Index(0), 0.67, 500, True) ----> System.Exception : Error while performing Swipe(All().Index(0), "left", 0.67, 500, True) ----> System.AggregateException : One or more errors occurred. ----> Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : Cannot implicitly convert type 'void' to 'object'

    I have no idea why this is now being thrown when it wasn't before. It actually successfully swipes and moves the screen, but it throws this exception at the same time and fails the test.

    I am using xamarin.UITest 2.0.10, nunit 2.6.4, most updated version of nunit test adapter, etc.

    I have ran the tests in both Visual Studio and Rider, and am using MacOS 10.12.6

    Thanks in advance for any ideas on what I should do to fix this new bug

    Tuesday, August 22, 2017 7:54 PM

Answers

  • User339700 posted

    I have upgraded to 2.0.10.1638-dev after experiencing the problem, and my test is now working correctly. Thanks

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, August 28, 2017 6:37 PM

All replies

  • User331836 posted

    Edit: can confirm this is a 2.0.10 bug. Rolled back to 2.0.9 and it worked fine again. Feel free to move this post to wherever is best for reporting bugs and also if anyone wants to double check to make sure I am correct here I think that would be a good call, since this is only a single anecdote

    Tuesday, August 22, 2017 8:07 PM
  • User52517 posted

    Can you reach out to support by logging into testcloud.xamarin.com & clicking on "Support" in the menubar?

    In particular, it would be helpful if you're able to share your Xamarin.UITest source code to reproduce the issue & an IPA or APK to run it against or a link to the issue occurring in the Xamarin Test Cloud.

    Thursday, August 24, 2017 5:07 PM
  • User52517 posted

    I have some good news, one of my colleagues was able to reproduce the issue after all; and based on that is filing a bug report. You can still keep the email support channel in mind if you encounter other suspected bugs in the future though.

    Thursday, August 24, 2017 5:47 PM
  • User220174 posted

    I am getting same issue after updating Xamarin.UITest from v9 to v10. Hopefully you will fix this issue soon :blush:

    Friday, August 25, 2017 11:45 AM
  • User63668 posted

    I've pushed a potential fix to -dev, could you please update to 2.0.10.1638-dev and report success/failure here.

    Thanks, /Simon

    Monday, August 28, 2017 12:33 PM
  • User339700 posted

    I have upgraded to 2.0.10.1638-dev after experiencing the problem, and my test is now working correctly. Thanks

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Monday, August 28, 2017 6:37 PM
  • User63668 posted

    Bill,

    Thanks for the feedback.

    /Simon

    Tuesday, August 29, 2017 7:31 AM
  • User290530 posted

    I had the similar issue running Xamarin.UITest 2.1.3 on macOS 10.12.6 with Xamarin.Forms 2.4.0.18342, i solved it by updating the Xamarin.UITest to the latest stable release which now is 2.1.4

    Wednesday, October 25, 2017 8:55 AM