1

I have a script that hangs after I click a link. This link launches a popup where the user then selects some options and the clicks the submit button to generate a report. After I click on the link the script it will hang indefinitely until I kill it. I am running my tests on a mac osx using chromedriver. I have tried firefox and safari and get same result. there is no click_no_wait in the elements.rb. It seems to only be for windows and ie. I have the latest install, so Is there a way to make the script execute the link and then not wait so that I can access the popup and process the form contained with in it?

Here is the link I need to click on:

b.frame(:name, "ifContentBody").link(:text, "Filter").click

javascript:

openMdlWindow('InvestmentDetailOptions.aspx?IDAssetType=', '620', '600');
if (window.document.RetValue == '2') {
    window.parent.LoadinIframe('InvestmentDetail.aspx?FromMenu=N&IDAssetType=', 'Investment Details > Full View', 'false');
}

I have searched a million+ posts and sites and can not find the solution. Any help will be appreciated.

4

1 回答 1

0

你看到这些了吗?

http://watirwebdriver.com/javascript-dialogs/
http://watirwebdriver.com/browser-popups/

于 2012-06-19T07:29:26.253 回答