- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
第一次来这里,我试图搜索此信息,所以如果之前有人问过这个问题,请原谅。我对编码/ Selenium 相当了解。除了我们的 SmartGWT 屏幕之外,我似乎对其他任何东西都没有问题,并且想知道是否有人可以提供建议......我似乎根本无法让 Selenium 与 SmartGWT 相关的任何东西一起工作
例如,我有一个日期字段,我想输入新日期
这是根据firepath的代码
<input id="isc_B" class="selectItemText" type="TEXT" tabindex="1131"
style="width:66px;height:12px;-moz-user-focus:normal;"
autocomplete="OFF" onselect="if (window.isc_ComboBoxItem_0 == null)
return;isc_ComboBoxItem_0.$54h()"
oninput="isc_ComboBoxItem_0._handleInput()" spellcheck="true"
$377="$378" $376="isc_ComboBoxItem_0" handlenativeevents="false"
name="valueField"/>
根据 firepath,这些是它的 xpath
[.//*[@id='isc_B']
html/body/div[4]/div[1]/div[2]/div/form/table/tbody[2]/tr[2]/td[1]/input
我已经尝试过这些:
driver.findElement(By.xpath(".//*[@id='isc_B']")).sendKeys...;
driver.findElement(By.xpath("//*[@id='isc_B']")).sendKeys...;
driver.findElement(By.id("isc_B")).sendKeys...;
并且无法识别任何东西。任何指点都会很棒,并提前感谢您。我需要为 smartGWT 或其他东西导入特定的库吗?
最佳答案
不要遵循 FirePath 建议的 XPath..尝试创建相对 XPath..因为绝对 XPATH 可能会改变..对于上面的输入标签,我建议您使用如下所示的内容
driver.findElement(By.className("selectItemText")).sendKeys("yourDate");
编辑:根据您的网站,下面的代码对我来说绝对没问题:
WebDriver driver=WebDriverFactory.getBrowser("http://www.tobymob.com/test/test.html");
driver.findElement(By.className("selectItemText")).sendKeys("someDate");
关于java - Selenium 与 Java、Eclipse 和 SmartGWT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35374749/
我有 2 个 TimeItems,我希望能够验证第二个项目的值不大于第一个。 我知道我必须从 CustomValidator 继承并将我的验证逻辑放在#condition 中,我可以使用 #getFo
i want to delete the row from the grid...and changes should reflect into my database..Please pro
我正在编写一个 SmartGWT 应用程序,需要每 30 秒在客户端执行一个方法。在 javascript 中,我会使用 setInterval 或 setTimeout。 如何在 SmartGWT
我想在SmartGWT表单中的DynamicForm中添加一个FormItem,但是我只能找到setItems方法,该方法添加了表单的所有FormItem,因此只能用于初始化表单。我错过了什么吗? 我
我已经使用 smartgwt 一段时间了,我必须考虑在 Stack 和 Layout 之间进行选择的因素是什么? 最佳答案 两者的主要区别在于,如果使用 HStack,HStack 的大小将根据浏览器
使用 smart gwt 4 运行应用程序时出现以下错误 核心 SmartClient JavaScript 库似乎未加载。如果继承 NoScript SmartGWT 模块,请验证 HTML 文件包
我写了一个代码来放大,并使用 smartGWT 缩小图像。但问题是包含 Canvas 无法显示它的滚动条如何解决 public class ImageViewer implements EntryPo
我正在寻找一个关于如何在 SmartGWT 中自定义数据源的好教程(现在也可以使用代码示例)。 一些细节: 我有一个 GWT 项目,它使用专有的客户端-服务器协议(protocol)来获取数据(具有基
我正面临 ListGrid 过滤器问题。我面临的问题是,当我在 ListGrid 上应用任何过滤器来编辑任何 ListGridRecord 时,只要我从列表网格的过滤器中删除了过滤后的文本,编辑过的记
几天后我将开始从事 smartGWT 项目,我想知道您有什么样的经历。为了避免使这成为对 smartGWT 或 GWT 或自由式讨论的抨击,我将为讨论提供一些指导: 你觉得提供的小部件集成得好吗?有没
试图让 Grails + smartgwt 一起工作。 设置: Grails 2.2.1(同时安装,gwt + smartgwt 插件) SmartGWT 3.1 总重量 2.5 玩了几个小时后,to
我将 SmartGWT listgrid 与数据源一起使用,通常我的过滤会触发服务器请求,但有时网格会尝试在本地过滤数据,然后不会显示任何数据。不幸的是,我无法判断是什么原因导致本地过滤。 我开始调试
我正在尝试编写进度条或向我的 Smart Gwt 应用程序添加加载 gif,它在 onModuleLoad 中开始,并在应用程序即将显示时结束。是否有某种类型的事件处理程序可以确定这一点?我已经看过,
我想在应用程序中提供时区设置,因此,我需要使用智能 Gwt 从浏览器获取时区。请告诉我获取时区的方法。实际上我在 smart gwt 应用程序中编写了 java 编码,如下所示, String tim
我有一个 smartgwt 应用程序,它创建带有 jpg/gif/png/pdf 文件的链接。该文件显示在浏览器中。我想要获取保存对话框,而不是当我想在本地计算机上保存文件时询问我的路径。我怎样才能做
从休息数据源检索数据时出现以下错误 00:00:52.439 [错误] 01:46:57.001:RDQ1:WARN:ResultSet:isc_ResultSet_1(创建者:isc_Custome
我一直在寻找一个 SmartGWT 示例,该示例将向我展示如何构建一个文件浏览器小部件,该小部件从本地服务器的根目录获取文件。用户将通过浏览器显示文件,然后他们可以选择这些文件来执行一些处理操作。 到
我想向按钮添加处理程序或监听器,每次我按下键盘上的键时,即使它不关注它,它也会响应。我怎样才能做到这一点? 最佳答案 import com.google.gwt.user.client.Event;
我有一个充满条目的列表网格,并启用了过滤。当我执行过滤器时,列表网格会相应更新。现在我想获取通过过滤器找到的结果数。我尝试添加 FilterEditorSubmitHandler但这是在过滤器实际执行
我已经研究了这个问题很长一段时间,但一直无法解决。我有一个带有字段类型图标的列表网格。我想将光标更改为“递”到图标上。 我一直在网上搜索,发现有几个解决方案。其中之一是对列表网格使用 addCellO
我是一名优秀的程序员,十分优秀!