gpt4 book ai didi

how to enter a number in an input field with type ="number' using karate UI(如何使用空手道用户界面在type=“number‘输入字段中输入数字)

转载 作者:bug小助手 更新时间:2023-10-25 10:54:52 26 4
gpt4 key购买 nike



For automation I need to enter a value in to an input field as below using karate UI.
input type="number" inputmode="numeric"

为了实现自动化,我需要使用空手道用户界面在如下所示的输入字段中输入值。INPUT TYPE=“NUMBER”输入模式=“NUMERIC”


I tried

我试过了



  • input('xpath of the field',"7")


which resulted in below error:

这会导致以下错误:


org.graalvm.polyglot.PolyglotException: js eval failed twice:var e = document.evaluate("xpath of the field", document, null, 9, null).singleNodeValue; e.focus(); try { e.selectionStart = e.selectionEnd = e.value.length } catch(x) {}, error: [type: MAP, value: {type=object, subtype=error, className=SyntaxError, description=SyntaxError: missing ) after argument list, objectId=-19151743.2.4}]

Org.graalvm.Polylobt.Polyglobal异常:JS计算失败两次:var e=Document.valuate(“XPath of the field”,Document,NULL,9,NULL).SingleNodeValue;e.Focus();Try{e.selectionStart=e.seltionEnd=e.value.long}Catch(X){},Error:[type:map,Value:{type=Object,Subtype=Error,className=SynaxError,Description=SynaxError:Missing)After Argument List,ObjectID=-19151743.2.4}]



  • com.intuit.karate.driver.DevToolsDriver.evalInternal(DevToolsDriver.java:358)

  • com.intuit.karate.driver.DevToolsDriver.eval(DevToolsDriver.java:322)

  • com.intuit.karate.driver.DevToolsDriver.input(DevToolsDriver.java:636)


How this can be solved

如何才能解决这个问题


更多回答
优秀答案推荐
更多回答

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