如果是Firefox,则可以通过定制Firefox Profile
IE下设置如下:
Security Alert:
Step1:View Certificate then install it.
Step2: Tool > Internet Options > Advanced, unselect security-> Warn about invalid site certificates 和 Check for publisher's certificate revocation.
Security information:
Tools > Internet Options > Custom Level, select Display mixed content
selenium.waitForPopUp(windowname, timeout); selenium.selectWindow(popupWindowIdentifier); //回到主窗口使用 'null' selenium.selectWindow(null);
popupwindowIdentifier 是一个窗口标识符,可以是窗口 ID、窗口名称, 印象中windowname也不一定指的是name,或许也可以是ID或者title