Xamarin.UITest Android ScrollView does not expose child element - xamarin.android

I am Automating an android App using Xamarin UITest framework and having issues in identifying the UI Elelement within a scrollview widget. REPL command tool for some reason doesn't give me the details of the child elements within a scrollView.
Below is my REPL tree command output
Repl output
App screen
The highlighted text is a scrollview and it doesnt appear in the REPL command line output.
Android API level is 16.
Any help or suggestion greatly appreciated. Thanks in advance.

I am not sure why but below line of code somehow allows access to the items in the scrollview.
app.PressUserAction(Xamarin.UITest.Android.UserAction.Unspecified);
app.ScrollDown();
app.ScrollUp();
app.ScrollTo(<AppQuery>);
Just posting in case anyone stuck with this issue.

Related

Problems with text selection in WkWebView from ios 15

I am experiencing a bug that started happening from iOS 15 when trying to select text in WkWebView. It works perfectly fine in iOS 14 and previous versions. When i tap the screen to select text in the WKWebView the selection box is misplaced. It goes above in the beginning of the document and you can't really tell what are you selecting and you cant select the text you want. In the project javascripts are used to evaluate text and me being a javascript noob can't tell if some of those scripts are the problem or it's something else. Have anyone experienced something like this or could have an idea what could be the problem? I've been stuck here for a while so i would try anything. I have also created a simple test project in which i load any page in WKWebView and i don't have that problem. Any idea is welcomed. Thank you!
I have tried everything i could find with no success.
It looks like you are using deprecated code like: UIMenuController or : UIMenuItem.
Try using the new ways Xcode is recommending.

Move a Text box in a PDF viewer using PDFKIT - Swift

I am working on this project https://github.com/kishikawakatsumi/BookReader to expand it. It is a PDF viewer implemented by PDFKIT and everything works fine there. but I have a problem in moving an element on the PDF file. I am very new to swift so I really appreciate if some one could help me any how .
I created a text box like the image below in my story board.
and in the result when I run the app is like this
you see it works fine in PDFViewr too. now my problem is that I want to find a way to move this yellow text box during the page by touching it (and also change the height and width of it ). once before , I have found a way using GestureRecognizer but it does not work more after iOS 13. I searched a lot but I all my efforts failed because non of the solutions worked for my project. I really appreciate if help me and even if payment needed, Its very important for me
Thank you very very much

Xamarin Forms NavigationPage small part of previous page visible when navigating on iOS

I'm facing a very awkward trouble with my XF NavigationPage on iOS, and can't find anything about it on google. When I navigate from one page to another using Navigation.PushAsync there is 1pt line of previous page on the left of the screen visible untill replace that loading page's content from codebehind, you can see it here: screenshot (I actually have an image im my XAML and it's replaced with content that is loaded from server). If I disable animations with false param on PushAsync this dosen't happen.
Is there any way to preserve animations and get rid of this? Any suggestions appreciated, thank's in advance.
Update to the Latest version of Xamarin Forms, as I remember facing this bug on some previous version of XF probably 3.5 something but when i updated to the latest it started working
Good luck
Revert in case of queries

AudioKit playground AudioKitUI views not showing

Just downloaded AudioKitPlaygrounds-4.0.3 and built it. I am getting audio just fine but none of the UI views show in the playgrounds. For example Mixing Nodes, the audio plays perfectly but I don't see any AudioKitUI views in the right pane. Tried clean and build again still no ui elements. I believe I should see them. I'm sure I missed something so I would appreciate help or pointer to docs that clears this up. Using Xcode 9.1 Mac OS X 10.12.6.
Thanks
Chris
It sounds like you are not showing the timeline view in your playgrounds.

Firemonkey android how to set transparency form like widget and remove the black background system behind my app

I have a question about firemonkey inside android !
Is it possible to remove the black system background when my application launches ?
I mean: I want to make my main form application transparent and show just the Rectangle control like the widget in dxscene example ....
Finally, my problem is just how to remove the black background launcher which is a part of the android system and not a bug from firemonkey...
I think it just needs a few lines of API's code to resolve the problem...
Any way...if anyone want to reply, be sure that all your suggestions will be appreciated and welcome.
maybe you must play with
WindowManager.updateViewLayout(view, layoutparams);
maybe something like FLAG_SHOW_WALLPAPER
https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html
best is to decompile classes.dex and see the embarcadero java code of the activity
ok i found the solution: is just by Modifying this line: (android:theme="%theme%") inside the <%uses-permission%> section from AndroidManifest.template.xml of your fmx project by this line: (android:theme="#android:style/Theme.Translucent.NoTitleBar") that all.
nb: without parentheses. result here: https://youtu.be/dzEtNGTQjY8

Resources