C# Project Compilation Error in DevTools V85, V91 & V92

96 views
Skip to first unread message

Arthanarieaswaran Shanmugaraj

unread,
Aug 27, 2021, 2:09:24 AM8/27/21
to Selenium Users
💬 Help required to solve the compilation issue in C#.net on DevTools V85, V91 & V92

I am getting compilation error on C#.net WebDriver.csproj as below

These are the reference are missing and I not seeing any code for this classes

  • using OpenQA.Selenium.DevTools.V85.Log
  • using OpenQA.Selenium.DevTools.V85.Page;
  • using OpenQA.Selenium.DevTools.V85.Runtime;
  • using OpenQA.Selenium.DevTools.V85.Fetch;
  • using OpenQA.Selenium.DevTools.V85.Network;
1.jpg

2.jpg


Am missing something on this?

Kindly please let me know, why this reference error is appearing and how to solve this.


Thanks and Regards

Artha


Jim Evans

unread,
Aug 28, 2021, 10:26:47 PM8/28/21
to Selenium Users
Have you properly set up Basel for building the .NET bindings? This blog post might be instructive. http://jimevansmusic.blogspot.com/2020/04/setting-up-windows-development.html

Arthanarieaswaran Shanmugaraj

unread,
Aug 30, 2021, 7:31:30 AM8/30/21
to Selenium Users
Thanks Jim, Great Article to build Selenium.

I have successfully completed the all the steps, but in the finial step - "bazel build //dotnet/test/common:chrome" getting below error.
Kindly help me to solve this.

Thanks and Regards
Artha

3.jpg
---------------------------Error Log -------------
PS C:\Users\Administrator> cd C:\Code\selenium\
PS C:\Code\selenium> bazel build //dotnet/test/common:chrome
INFO: Repository apple_rules_lint instantiated at:
  C:/code/selenium/WORKSPACE:11:13: in <toplevel>
Repository rule http_archive defined at:
  C:/users/administrator/_bazel_administrator/tnsgctj4/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
WARNING: Download from https://github.com/apple/apple_rules_lint/archive/0.1.1.zip failed: class java.io.IOException connect timed out
ERROR: An error occurred during the fetch of repository 'apple_rules_lint':
   Traceback (most recent call last):
        File "C:/users/administrator/_bazel_administrator/tnsgctj4/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archive_impl
                download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/apple/apple_rules_lint/archive
/0.1.1.zip] to C:/users/administrator/_bazel_administrator/tnsgctj4/external/apple_rules_lint/temp10385186029933077752/0.1.1.zip: connect timed out
ERROR: Error fetching repository: Traceback (most recent call last):
        File "C:/users/administrator/_bazel_administrator/tnsgctj4/external/bazel_tools/tools/build_defs/repo/http.bzl", line 111, column 45, in _http_archive_impl
                download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/apple/apple_rules_lint/archive
/0.1.1.zip] to C:/users/administrator/_bazel_administrator/tnsgctj4/external/apple_rules_lint/temp10385186029933077752/0.1.1.zip: connect timed out
ERROR: no such package '@apple_rules_lint//lint': java.io.IOException: Error downloading [https://github.com/apple/apple
_rules_lint/archive/0.1.1.zip] to C:/users/administrator/_bazel_administrator/tnsgctj4/external/apple_rules_lint/temp10385186029933077752/0.1.1.zip: connect timed out
INFO: Elapsed time: 55.131s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
PS C:\Code\selenium>
-------------------------------------------------------------

Jim Evans

unread,
Aug 30, 2021, 1:34:11 PM8/30/21
to Selenium Users
So, reading the error message the build is giving you, what does the problem appear to be? It looks to me like Bazel was unable to successfully download one of the rule sets that the Selenium project build depends on from its repository on github.com. Following the link in the stack trace, it's a valid link, and given that the error is a timeout, it sounds like a network issue in your environment. There is a fair amount of "stuff" that the Bazel build needs to download from the net the first time that it's executed, and network interruptions will cause all manner of havoc with that. Bazel is smart enough to cache the downloads though, so it's only a hit the first time you execute the build.

Also, as a side note, the tool installation requires administrator access under Windows; the actual build does not. If you're running the Selenium build under an elevated command prompt, don't. (Your stack trace says your user name is "administrator," and it need not be.)
Reply all
Reply to author
Forward
0 new messages