English 中文(简体)
Selenium IDE: issues calls javascript from within a popup
原标题:Selenium IDE: problems calling javascript from within a pop-up

我遇到问题,正在测试Selenium IDE的流行菜单。

在人群中,有一个叫 Java的县(更新名单)并关闭了人口。

测试将点击纽顿,但 Java的Script功能没有被叫去,而且烟雾没有关闭。

如果我把自己点上了两点,如果把试验推到两处(在另一起案件中点击纽子),并单独操作,那么它就会发挥作用。

是否有任何人在出现这一问题之前遇到过这一问题,并解释正在发生什么?

verifyElementPresent | //td[2]/a/img | |
click | //td[2]/a/img | |
waitForPopUp | lookup | 30000 |
selectWindow | name=lookup | |
click | Checkbox1 | |
click | //table[@id= Table2 ]/tbody/tr/td[1]/a/img | | 
问题回答

我已经解决了问题,简单地说,用标签取而代之,使用权宜之计!

|verifyElementPresent | //td[2]/a/img | |
|click | //td[2]/a/img | |
|waitForPopUp | lookup | 30000 |
|selectWindow | name=lookup | |
|click | Checkbox1 | |
|storeEval | selenium.browserbot.getCurrentWindow().document.getElementsByTagName( a )[3]|test |
|echo | ${test} | |
|echo: javascript:save();
|runScript | ${test} | |
|close | |  




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签