为firefox,chorme和IE webdriver设置安全标志

时间:2016-06-24 08:57:07

标签: java google-chrome internet-explorer selenium firefox

我正在使用selenium和Java,我想将下面的安全选项设置为On for firefox。 firefox security

以下是我用来设置安全选项On的代码。

    var json = {};
    //Sum up everything and erase
    $.each($('.row'), function (index, curRow) {                                    
        var curName=$(curRow).find('.id').text();   
        var curQty=$(curRow).find('.val').text();
        if (json[curName] != null){
            json[curName] += parseInt(curQty);
        } else {
            json[curName] = parseInt(curQty);               
        }
        $(this).remove();
    });
    //Rebuild table
    jQuery.each(json, function(name, val) {
        $('table').append('<tr class="row"><td class="id">'+name+'</td><td class="val">'+val+'</td><td class="date">date</td></tr>');
    });

它会显示错误消息:

Sub MakePivot()

ActiveWindow.SmallScroll ToRight:=-45
Columns("A:Y").Select
ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData:= 
    "New!R1C1:R1048576C25", Version:=xlPivotTableVersion14). 
    CreatePivotTable TableDestination:="", TableName:= _
    "PivotTable1", DefaultVersion:=xlPivotTableVersion14

With ActiveSheet.PivotTables("PivotTable1").PivotFields("____")
    .Orientation = xlRowField
    .Position = 1
End With
ActiveSheet.PivotTables("PivotTable1").AddDataField ActiveSheet.PivotTables( _
    "PivotTable1").PivotFields("______"), "Count of ______", xlCount
ActiveSheet.PivotTables("PivotTable1").AddDataField ActiveSheet.PivotTables( _
    "PivotTable1").PivotFields("Value "), "Count of Value ", xlCount
ExecuteExcel4Macro _
    "PIVOT.FIELD.PROPERTIES(""PivotTable1"",""Count of ______"",,,2)"
ExecuteExcel4Macro _
    "PIVOT.FIELD.PROPERTIES(""PivotTable1"",""Count of Value "",,,2)"
End Sub

任何人都可以告诉我如何解决它,同样可以实现chrome和IE浏览器吗?

1 个答案:

答案 0 :(得分:-1)

你不能,该值被冻结,抱歉。