边缘驱动程序不受信任的证书功能(Selenium)

时间:2017-02-09 11:50:26

标签: java selenium selenium-webdriver microsoft-edge

我在浏览器中进行自动化测试,使用Selenium Grid架构,我使用JSON配置文件来设置节点。

Microsoft Edge驱动程序是否有与$('table[id$=gridViewId]').show(); function Validate() { var FromDate = document.getElementById('<%=frmDate.ClientID %>').value; var ToDate = document.getElementById('<%=toDate.ClientID %>').value; if (FromDate == "") { $('table[id$=gridViewId]').hide(); alert("Select From date"); return false; } if (ToDate == "") { $('table[id$=gridViewId]').hide(); alert("Select To Date"); return false; } if (Date.parse(FromDate) > Date.parse(ToDate)) { $('table[id$=gridViewId]').hide(); alert("Invalid Date Range!\nStart Date cannot be after End Date!") return false; } //Validations passed hence show the gridview $('table[id$=gridViewId]').show(); } 类似的功能?这个选项不起作用我只是测试了它 DesiredCapabilities documentation上没有关于它的文档,我在Edge Webdriver documentation中找不到它

1 个答案:

答案 0 :(得分:0)

C#代码,但可以很容易地适应Java:

var edgeOptions = new EdgeOptions();
//Set Internet Explorer browser to accept the SSL Certificates by default
edgeOptions.AddAdditionalCapability(CapabilityType.IsJavaScriptEnabled, true);
edgeOptions.AddAdditionalCapability(CapabilityType.AcceptSslCertificates, true);