urbanclap-admin

Results 12 comments of urbanclap-admin

> @urbanclap-admin I'm using this patch and it works good. [facebook/react-native#30320 (comment)](https://github.com/facebook/react-native/issues/30320#issuecomment-1170113452) started getting this crash -> https://github.com/software-mansion/react-native-gesture-handler/issues/1188 after using the above patch you mentioned

Tried chaining it with multiple ancestor matchers like below ` let address = element( by .id("location_heading") .withAncestor( by .id("location_heading_ll") .withAncestor( by .id("location_heading_ll_ll") .withAncestor( by .id("location_heading_ll_ll_ll") .withAncestor(by.id("location_list_parent")) ) ) ) );`...

> Try adb shell uiautomator dump here is the dump file ``` ```

> Hmm... Looks like it is `tv_location_heading`, you mistyped `location_heading`. > > ``` > resource-id="com.urbanclap.urbanclap:id/tv_location_heading" > class="android.widget.TextView" > package="com.urbanclap.urbanclap" content-desc="" > checkable="false" checked="false" clickable="false" > enabled="true" focusable="false" focused="false" > scrollable="false"...

> So, did you check that those tags (`location_heading`) are present in the hierarchy? Maybe you could avoid long ancestor chains and just use `atIndex` in case there are multiple...

``` detox[72366] i user { elements: [ { visibility: 'visible', visible: true, label: 'Or', alpha: 1, elevation: 0, height: 55, width: 49, focused: false, enabled: true, text: 'Or', length: 2,...

not sure why this works but once I do `await element(by.type('android.widget.TextView')).getAttributes()` I can now fetch the element just by the text matcher itself, without the attributes code this does not...