StdOut充满了'C:\ fakepath'警告,整数除法可能会慢得多,如果可能,请通过C#使用Selenium尝试使用uint

问题描述 投票:0回答:1

我正在使用Selenium Firefox Web驱动程序。它工作正常,但是当我使用“ dotnet run”运行命令行时,命令行上出现了一些我未解决的警告日志。我该如何解决这个问题?

console warning logs

var options = new FirefoxOptions();
            options.AddArguments("--headless");
            IWebDriver driver = new FirefoxDriver(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), options);
            var link = "ANY LINK";

            driver.Navigate().GoToUrl(link);
            driver.FindElement(By.ClassName("ANY CLASS NAME")).Click(); 
            driver.Dispose();

这里有一些警告,因为图像链接损坏

1578640820834   [email protected]     WARN    Loading extension '[email protected]': Reading manifest: Invalid extension permission: mozillaAddons
1578640820834   [email protected]     WARN    Loading extension '[email protected]': Reading manifest: Invalid extension permission: telemetry
1578640820834   [email protected]     WARN    Loading extension '[email protected]': Reading manifest: Invalid extension permission: resource://pdf.js/
1578640820834   [email protected]     WARN    Loading extension '[email protected]': Reading manifest: Invalid extension permission: about:reader*
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
WARN: compileToBinary(259):
C:\fakepath(337,18-133): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(343,62-116): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(360,75-84): warning X3556: integer divides may be much slower, try using uints if possible.
C:\fakepath(363,50-59): warning X3556: integer modulus may be much slower, try using uints if possible.
C:\fakepath(383,33-90): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(174,1-6): warning X4000: use of potentially uninitialized variable (dyn_index_vec4_float4)
C:\fakepath(289,25-29): error X4576: Input array signature parameter  cannot be indexed dynamically.

WARN: compileToBinary(259):
C:\fakepath(337,18-133): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(343,62-116): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(360,75-84): warning X3556: integer divides may be much slower, try using uints if possible.
C:\fakepath(363,50-59): warning X3556: integer modulus may be much slower, try using uints if possible.
C:\fakepath(383,33-90): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(174,1-6): warning X4000: use of potentially uninitialized variable (dyn_index_vec4_float4)
C:\fakepath(289,25-29): error X4576: Input array signature parameter  cannot be indexed dynamically.

WARN: compileToBinary(259):
C:\fakepath(360,75-84): warning X3556: integer divides may be much slower, try using uints if possible.
C:\fakepath(363,50-59): warning X3556: integer modulus may be much slower, try using uints if possible.
C:\fakepath(174,1-6): warning X4000: use of potentially uninitialized variable (dyn_index_vec4_float4)
C:\fakepath(225,1): warning X4000: use of potentially uninitialized variable (f_distance_aa)
C:\fakepath(262,1): warning X4000: use of potentially uninitialized variable (f_do_clip)

[Child 7840, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1572401533/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Ch1578640823372        Marionette      INFO    Listening on port 58853
1578640829566   Marionette      INFO    Stopped listening on port 58853
[Parent 18380, Gecko_IOThread] WARNING: pipe error: 109: file z:/task_1572401533/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[Child 23108, Chrome_ChildThread] WARNING: pipe error: 109: file z:/task_1572401533/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 341
[GPU
###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
c# selenium selenium-chromedriver selenium-firefoxdriver renderer
1个回答
0
投票

此警告消息...

WARN: compileToBinary(259):
C:\fakepath(337,18-133): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(343,62-116): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(360,75-84): warning X3556: integer divides may be much slower, try using uints if possible.
C:\fakepath(363,50-59): warning X3556: integer modulus may be much slower, try using uints if possible.
C:\fakepath(383,33-90): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
C:\fakepath(174,1-6): warning X4000: use of potentially uninitialized variable (dyn_index_vec4_float4)
C:\fakepath(289,25-29): error X4576: Input array signature parameter  cannot be indexed dynamically.
.
WARN: compileToBinary(259):
C:\fakepath(360,75-84): warning X3556: integer divides may be much slower, try using uints if possible.
C:\fakepath(363,50-59): warning X3556: integer modulus may be much slower, try using uints if possible.
C:\fakepath(174,1-6): warning X4000: use of potentially uninitialized variable (dyn_index_vec4_float4)
C:\fakepath(225,1): warning X4000: use of potentially uninitialized variable (f_distance_aa)
C:\fakepath(262,1): warning X4000: use of potentially uninitialized variable (f_do_clip)

...是启用WebrenderStdOutC:\fakepath垃圾邮件的结果。


分析

[在启用WebRender的情况下打开Firefox,并且如果捕获了stdout,则观察到了warning消息。这些warning消息是GPU -> ANGLE模块中WebRender中某些shader更改的结果。

我们已经在以下线程中详细分析并讨论了此问题:

最后,此问题已通过此merge / commit解决


解决方案

确保:

  • 升级JDK到最近的级别JDK 8u222
  • 升级到当前水平Version 3.141.59
  • 升级GeckoDriverGeckoDriver v0.26.0等级。
  • GeckoDriver存在于所需位置。
  • GeckoDriver具有非root用户的可执行权限。
  • Firefox版本升级到Firefox v70.0级别。
  • Clean您的Project Workspace通过您的IDERebuild您的项目仅具有必需的依赖项。
  • 仅限于[WindowsOS)在执行[[Test Suite之前和之后,使用CCleaner工具清除所有操作系统杂项。
  • 仅适用于LinuxOS
  • )在执行[[Test Suite之前和之后Free Up and Release the Unused/Cached Memory in Ubuntu/Linux Mint如果您的基本Web Client版本太旧,请通过Revo Uninstaller卸载它,并安装最新的GA和
  • Web Client
  • 的发行版本。进行系统重启
  • 以非root用户身份执行Test。>>总是在driver.quit()方法中调用tearDown(){}以正常关闭并销毁
  • WebDriver
  • Web Client
  • 实例。
© www.soinside.com 2019 - 2024. All rights reserved.