Required Chromedriver version with Webdrivers not working - ruby-on-rails

Since I updated Chrome, my tests don't work anymore.
I get this error:
Selenium::WebDriver::Error::SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 76
So I replaced
# Currently I have Chrome 78 installed
Webdrivers::Chromedriver.required_version = Webdrivers::Chromedriver.current_version.to_s
by
Webdrivers::Chromedriver.required_version = '76.0.3809.68'
But I got the exactly same error.
I also tried with the 76.0.3869.25.
As you can see here: https://github.com/titusfortner/webdrivers/blob/master/lib/webdrivers/chromedriver.rb#L76
The required version exists.
My tests are working on Travis. Any idea?

I got this problem today, and was able to fix it....
System: Windows10 Enterprise Desktop, Visual Studio Pro 2017
Used the VS Nuget UI to update the Selenium.WebDriver.Chrome package
Normally, this works, but I continued to get the same error as above
To fix:
- I went to where my Chromedriver.exe file was located and removed it.
- Then I re-built my application that uses Selenium
- My VS app then loaded a new Chromedriver.exe
3. Re-ran my Selenium test: Problem solved.

Related

Test Explorer is finding tests, but not running them after upgrading to NUnit3TestAdapter v4.3.0

I'm running Visual Studio Professional 2019 and have many NUnit tests in my project. A few days ago, I updated my NUnitTestAdapter nuget package from 4.2.1 to 4.3.0 and now my Test Explorer does not run any of the tests. It throws no errors and has no problem finding/displaying the tests, but whenever I try to run them, it says:
Test run finished: 0 Tests (0 Passed, 0 Failed, 0 Skipped) run in 172.1 ms
I can confirm that rolling back to 4.2.1, cleaning, and rebuilding the project fixes the problem so maybe the issue is a bug in the 4.3.0 package, however I wanted to check if anyone else has this problem or if there is any configuration I need to do in Visual Studio to fix this.
This issue (.Net Framework (4.8 and lower) would crash due to InternalTracelog files trying to be written to the Program Files directory.) was fixed in version 4.3.1 of NUnit3TestAdapter Nuget package.

google test adapter vs 2017

I have successfully got "google test adapter" v 0.11.1 working on a laptop with vs 2017 community.
However, on my desktop (much preferred machine for coding), also running vs 2017 community, despite being able to install it (apparently flawlessly) the option for Google tests in the new project menu is just simply not there.
I have uninstalled and re-installed "google test adapter" several times.
Each time the install appears successful (because I can find it to uninstall it) in extensions and updates. However, never does it appear as a project option.
I cannot see what more to do to solve this inexplicable conundrum.
I would appreciate some help...
I have an update:
There was a one version difference of google test adapter between the two computer systems - v 0.11.1 and v 0.10.1.
Version 0.10.1 works properly and version 0.11.1 does not!
So the latest version is somehow problematic - what the issue is I have no idea...
If you are still having that problem, please open an issue on the Google Test Adapter GitHub page.

ASP.NET OmniSharp server is not running on Ubuntu Mono

After setting up VS Code, I'm trying to run an ASP.NET 5 project using Visual studio code's command palette on Ubuntu Linux 14.4.
The DNVM installed is for Mono. Following the steps given on VS code's official docs, the project is created with Yeoman scaffolder.
Whenever trying to start the project, I get the following error:
OmniSharp server is not running.
I found some posts when trying to solve this but most seems to be addressing either Console project or are given for OS x:
For a Console App
This is for debugging not running
The output of mono --version shows that it is >3.12:
My dnvm is already the latest
I can run the project by using dnx web command from Terminal.
However, my simple question:
How do I run ASP.NET 5 on Ubuntu using VS Code?
Side question : Not sure by when the debugging will be supported. Any rumours about the extension will be appreciated.
This seems to be a bug with OmniSharp and not specifically with VSCode

Visual Studio 2015 RTM Cordova IOS Build Error - Could not find module 'Q'

I am using Visual Studio 2015 RTM, and I am working on a Cordova project. My project works fine for Android, but I cannot get it to build for IOS. I have figured out what the problem is, but I cannot figure out how to fix it.
When I build for IOS it is sending the build to the remote build agent installed on my Mac computer, but it is returning the following error:
Could not find module 'Q'. Please Go to Tools --> Options --> Tools
for Apache cordova --> Cordova Tools --> Clear Cordova Cache and try
building again.
Following it's suggestion and clearing the Cordova cache does not help. I did some research and have found that it is a bug in the cordova_ios library. Here is a link to the commit that fixed the error https://github.com/apache/cordova-ios/commit/ed272032878959c90eb28ccc1490e96fb7b69287.
Basically what the issue is that the check_reqs.js file is require 'Q' (uppercase) instead of 'q' (lowercase).
I can work around the problem (and confirm that this is the problem) by doing the following:
Copy my Cordova project over to my Mac computer.
At the command line add IOS as a Cordova platform.
Go to the /platforms/ios/cordova/lib/check_reqs.js file and change line 25 to be a lowercase 'q'.
Build and run the project on the Mac.
What I don't know is how to fix this in Visual Studio so I can build from Visual Studio? I have tried doing NPM updates on the computer that Visual Studio is installed on, but that has not fixed it. I have also tried to manually add the IOS platform to my project via the Cordova command line, and then changing the same file that I change on the Mac, but that does not fix it either.
It looks like this issue if fixed in the latest version of the cordova_ios library, I just cannot figure out how to get Visual Studio and/or the remote build agent on my Mac to use the latest version of the cordova_ios library.
Update
It looks like this is a bug that other people are seeing with Cordova. There are discussion about it here and here. I can reproduce this on my Mac computer. If I create a new Cordova project and add the iOS platform and try to build it for iOS I receive this error. I can then correct the issue by opening the check_reqs.js file and changing the uppercase 'Q' to a lowercase 'q'. However when I build from Visual Studio it sends the project across to the Mac with the incorrect check_req.js file and the build fails. I cannot figure out how to correct this issue when doing a iOS build from Visual Studio.
If your OSX machine has case a case sensitive filesystem you can hit this though a fix is in the works. (Most people do not turn on case sensativity.)
The fix you reference has not yet been released publicly. You can watch for a "platform" release here: http://cordova.apache.org/
Once the platform is released it is very likely a Cordova CLI update will also occur (ex: 5.1.2) so you can just update to that version via the config designer.
However, as an alternative you can add the following into your config.xml file to cause Cordova to use a different iOS platform version and then do a "clean" in VS to force it to take effect:
<engine name="ios" spec="3.9.0" />
3.8.0 is the currently released version.
A "DISCUSS" thread is already going for an iOS release - it should be out in the next couple of weeks.
You can try using the Git URI to get edge - but that could be buggy so exercise care:
<engine name="ios" spec="https://github.com/apache/cordova-ios.git" />
I think we should simply do a patch release of Cordova with this bug fix. Will start a thread on the mailing list to see if a quick release is possible.
Did you already try re-installing vs-tac? Here's the doc:
https://msdn.microsoft.com/library/dn771551(v=vs.140).aspx#vstac
What version of node do you have installed on the MAC machine? I have 0.12.2 and the require(Q) gets satisfied without any errors. Can you try installing a newer version of Node? Let me know.

Umbraco: Could not load type 'Umbraco.Web.UmbracoApplication'

I've downloaded Umbraco, connected to a database and installed a sample site but when I try to run in Visual Studio, I get this error:
Could not load type 'Umbraco.Web.UmbracoApplication'.
Any ideas?
I usually follow this guide to get Umbraco up and running with Visual Studio: Setting up Umbraco 7 in Visual Studio 2013 for MVC 4 development
You are possibly missing a reference. Also - I found this happens in my version 7.2.4 too.
Check that the install completes - especially if you installed with NuGet. Sometimes powershell doesn't work and the installation is not completed. Look for yellow text during installation. If this fails, try an older version.

Resources