Error performing 'single click - At Coordinates

我与影子孤独终老i 提交于 2019-12-12 01:19:28

问题


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

来源:https://stackoverflow.com/questions/53958668/error-performing-single-click-at-coordinates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!