我无法使用来自 jwtio.com 网站的 java 清除文本框中的文本

问题描述 投票:0回答:0

我在 eclipse 中使用 selenium 框架。我想使用 java 函数清除编码文本框中的文本。通过不同的方式尝试使用 clear、backspace 和 javascript 仍然没有得到预期的结果。我怎样才能清除文本,请建议。

在控制台上出现错误: 错误'}, goog:chromeOptions: {debuggerAddress: localhost:61642}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false,超时:{隐式:0,pageLoad:300000,脚本:30000},unhandledPromptBehavior:关闭并通知,webauthn:extension:credBlob:true,webauthn:extension:largeBlob:true,webauthn:extension:minPinLength:true,webauthn:extension: prf: true, webauthn:virtualAuthenticators: true} 会话 ID:a189e4d9a52b8e84ebf04e4e864c55e1' 发生在步骤:'clear' 中。作为参考,请参考行号:“EDGE_Progression_Swarali”类中的“29741”

尝试了不同的方法,使用 clear、backspace 和 javascript 仍然没有得到预期的结果。我怎样才能清除文本,请建议。

我期待得到文本,清除它并在同一个文本框中输入另一个文本

javascript java selenium-webdriver xpath pom.xml
© www.soinside.com 2019 - 2024. All rights reserved.