0

i'm working with Selenium RC and coding with Java , my problem is the selenium.type ,My screen contains many labels with the same notation so when i use the method :

 selenium.type("//span[text()=\""+remplace+"\"]/following-   sibling::input#form:blocConfigurations:configurations:0:parametrage:options:"+ind.get(ii)+"",configuration.getString(listTypMetier.get(il)))) 

even if the locator is not the same it always keeps typing in the same field.

4

1 回答 1

0

如果可以的话,我会尝试在您的标签/字段中添加一些 id 或类。如果您只想在输入字段中键入一些文本,那么该选择器看起来相当长且复杂。如果没有,您是否有任何理由按照您在问题中显示的方式进行操作?

于 2012-08-08T13:12:21.963 回答