Error performing 'single click - At Coordinate

2019-08-22 18:21发布

问题:

I am doing detox test for react native android version 0.57. I am getting this error.

Error is:

Error: Error: Error performing 'single click - At Coordinates: 720, 1485 and precision: 16, 16' on view '(with tag value: is "create_team_button" and view has effective visibility=VISIBLE)'

Code is

it('should create team', async () => {
    await waitFor(element(by.id('create_team'))).toBeVisible().withTimeout(2000);
    await element(by.id('create_team')).typeText('mobile offize');
    await waitFor(element(by.id('create_team_button'))).toBeVisible().withTimeout(2000);
    await element(by.id('create_team_button')).tap();
  });

And render function is

render() {
    return (
       <View>
            <Button
                testID={'create_team_button'}
                rounded title={I18n.t("NEXT")}
                buttonStyle={styles.button}
                disabled ={!(this.state.teamName.length >0)}
                onPress={this.onCreateTeamButtonPressedDebounced} />
       </View>

Full error picture