我正在尝试使用Selenium将SQL代码输入到代码镜像文本框中。为了解决这个问题,我将使用站点作为示例。如果代码包含回车或行提要,则无法将MSSQL SQL代码提交到代码文本框中。("arguments[0].CodeMirror.setValue(\"" + sql + "\");", codeMirror); //<<<<----Fails here with the errordriver.Find
/worklight/worklight.js:1079:23)
at Object.instantiate (file:///android_asset/www/lib/ionic/js/ionic.bundle.js:///android_asset/www/lib/ionic/js/ionic.bundle.js:
编辑: 我解决这个问题的方法是执行find_elements_by_xpath,然后对所有元素使用try, catch,直到没有错误和中断。 任何读到这个问题的人。解决方案是正确的,错误或问题是有多个元素具有相同的xpath。通过选择第一个元素,我选择了一些不可交互的东西。 尝试对input元素执行click或send_keys操作时出错。selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
我想知道这些有什么不同,,let elements = Processinfo.processinfo.arguments
在我看来,ProcessInfo的论点包含了Commandline的所有概念。下面的代码使用CommandLine.arguments,用于练习读写文件。如果我把Processinfo.processinfo.arguments放在CommanLine.arguments<