Watin's LogonDialogHandler not working for Firefox 3.6

冷暖自知 提交于 2020-01-07 02:05:12

问题


I'm writing automation scripts for a website using WatiN. when I browse to a particular url, a authentication dialog pops up. I have following code to handle the dialog. This code basically enters the specified

// Create a logon dialog handler
LogonDialogHandler ldh = new LogonDialogHandler(user, password);
browser.DialogWatcher.Add(ldh); 
browser.GoTo("URL that pops up the authentication dialog");

Now this works just fine in IE. But in Firefox, the dialog appears and nothing happens after that. (No username or password entered in their text boxes)

Any idea what's going wrong here?


回答1:


I'm sorry but the automation of firefox popups/dialogs is not supported by WatiN at this moment (WatiN 2.1 and lower). It probably can be done but this is not high on my priority list.



来源:https://stackoverflow.com/questions/8474011/watins-logondialoghandler-not-working-for-firefox-3-6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!