gpt4 book ai didi

ios - 排毒:iOS 模拟器如何在键盘上按 Next

转载 作者:行者123 更新时间:2023-12-01 18:38:26 25 4
gpt4 key购买 nike

输入用户电子邮件地址后,我希望 Detox 按下一步移动到密码字段。

我试图通过元素 ID 查找密码字段并调用 .tap()焦点,但键盘部分遮挡了密码字段,并且未能通过 75% 的可见性标准。

Error Trace: [
{
"Description" : "Assertion with matcher [M] failed: UI element [E] failed to match the following matcher(s): [S]",
"Description Glossary" : {
"M" : "matcherForSufficientlyVisible(>=0.750000)",
"E" : "<RCTUITextField:0x7f9abd45f190; AX=Y; AX.id='Password Input'; AX.value='your new password'; AX.frame={{42.5, 342.5}, {235, 40}}; AX.activationPoint={160, 362.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {235, 40}}; alpha=1; text=''>",
"S" : "matcherForSufficientlyVisible(>=0.750000)"
},
"Error Domain" : "com.google.earlgrey.ElementInteractionErrorDomain",
"Error Code" : "3",
"File Name" : "GREYAssertions.m",
"Function Name" : "+[GREYAssertions grey_createAssertionWithMatcher:]_block_invoke",
"Line" : "75"
}
]

知道如何解决这个问题吗?我正在使用 detox 来测试一个 react-native 应用程序。

谢谢。

最佳答案

原来它就像添加 \n 一样简单到文本输入的末尾,如下所示:

const email = 'test@email.com';
await element(by.id('email_input')).typeText(`${email}\n`);

关于ios - 排毒:iOS 模拟器如何在键盘上按 Next,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47473288/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com