取得可用的日誌類型。 關於 WebDriver 中的日誌類型的更多資訊可以在這裡找到:https://github.com/SeleniumHQ/selenium/wiki/Logging

用法

                    .getLogTypes(callback)
                

範例

this.demoTest = function(client) {
  this.getLogTypes(function(typesArray) {
    console.log(typesArray);
  });
};

參數

名稱 類型 描述
callback function

使用結果值呼叫的回呼函式。

返回

類型 描述
陣列

可用的日誌類型

另請參閱