我在浏览器中进行自动化测试,使用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中找不到它
答案 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);