小编Sco*_*ley的帖子

更改在docker中运行的selenium节点的日志级别

我们的团队正在使用docker部署selenium网格.默认日志级别似乎设置为INFO.我想将它设置为更高,严重或完全关闭它们.我做了三次尝试,但到目前为止,没有任何效果.

方法一:

从selenium客户端,我试图在DesiredCapabilities中的RemoteWebDriver上设置LoggingPreferences:

DesiredCapabilities desiredCapabilities = DesiredCapabilities.firefox();
LoggingPreferences logs = new LoggingPreferences();
logs.enable(LogType.BROWSER, Level.SEVERE);
logs.enable(LogType.CLIENT, Level.SEVERE);
ogs.enable(LogType.DRIVER, Level.SEVERE);
logs.enable(LogType.SERVER, Level.SEVERE);
desiredCapabilities.setCapability(CapabilityType.LOGGING_PREFS, logs);
desiredCapabilities.setCapability(FirefoxDriver.PROFILE, profile);
WebDriver driver = new RemoteWebDriver(new URL(host:4444/wd/hub"), 
                                           desiredCapabilities);
Run Code Online (Sandbox Code Playgroud)

方法2:我尝试更改配置文件首选项:

FirefoxProfile profile = new FirefoxProfile();

profile.setPreference("webdriver.log.driver", "OFF");
profile.setPreference("webdriver.log.file","/dev/null");
Run Code Online (Sandbox Code Playgroud)

方法3:我尝试修改位于/opt/selenium/config.json的容器中的config.json:

{
  "capabilities": [
    {
      "browserName": "*firefox",
      "maxInstances": 1,
      "seleniumProtocol": "Selenium"
    },
    {
      "browserName": "firefox",
      "maxInstances": 1,
      "seleniumProtocol": "WebDriver"
    }
  ],
  "configuration": {
      "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
      "maxSession": 1,
      "port": 5555,
      "register": true,
      "registerCycle": 5000,
      "logLevel":FATAL
  }
}
Run Code Online (Sandbox Code Playgroud)

到目前为止,我一直无法做任何改变日志记录行为的事情.

selenium docker

5
推荐指数
1
解决办法
2900
查看次数

我想手动将ASCII流插入到oracle中BLOB类型的列中

是否有将ASCII转换为blob的命令?

我有下表:

sample_table:
-------------
id : NUMBER 
type : NUMBER 
version : NUMBER 
data : BLOB
Run Code Online (Sandbox Code Playgroud)

执行以下命令时:

insert into sample_table 
values 
   (1, 0, 1, '<?xml version="1.0" encoding="UTF-8"><Test><buffer><A></buffer></Test>' );
Run Code Online (Sandbox Code Playgroud)

我收到以下错误: ORA-01465: invalid hex number.

oracle blob

4
推荐指数
1
解决办法
4685
查看次数

标签 统计

blob ×1

docker ×1

oracle ×1

selenium ×1