No module named 'selenium.webdriver.safari.options' - safaridriver

Requirements
OS
macOS Monterey 12.3.1
Selenium version
4.1.1
Python
3.10
Safari
15.4 (17613.1.17.1.13)
from selenium.webdriver.safari.options import Options as SafariOptions
self.options = SafariOptions()
ModuleNotFoundError: No module named 'selenium.webdriver.safari.options'
and I can't use desired_capabilities in selenium4 because:
if desired_capabilities:
warnings.warn(
"desired_capabilities has been deprecated, please pass in an Options object with options kwarg",
DeprecationWarning,
stacklevel=2
)

Safari Options was a known bug for Selenium 4 for Py.
This has been resolved - Py safari options #10385
This was merged into release 4.1.3 for Py, update your Selenium version to 4.1.3 or 4.1.4 to resolve the issue.

Related

Can't import the named export 'ɵɵngDeclareNgModule' from non EcmaScript module (only default export is available)

I am getting this error while using angular 11.0 with native script and android (on importing webcam module to app.module from npm):
Error: ./node_modules/ngx-webcam/fesm2015/ngx-webcam.mjs 482:20-42
Can't import the named export 'ɵɵngDeclareNgModule' from non EcmaScript module (only default export is available)
I solved the above error by
migrating my angular application cli version from 11.0 to 12.2.16 (or latest stable version ).
After that, camera feature was working fine

SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 85

Currently i am working protractor UI testing. My testcase is working properly so far, but suddenly it shows a webdriver problem. My current chrome version is 84. But the selenium driver is expecting version 85. Version 85 is still not released.
[14:56:46] E/launcher - session not created: This version of ChromeDriver only supports Chrome version 85
(Driver info: chromedriver=85.0.4183.38 (9047dbc2c693f044042bbec5c91401c708c7c26a-refs/branch-heads/4183#{#779}),platform=Windows NT 10.0.17134 x86_64)
[14:56:46] E/launcher - SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 85
(Driver info: chromedriver=85.0.4183.38 (9047dbc2c693f044042bbec5c91401c708c7c26a-refs/branch-heads/4183#{#779}),platform=Windows NT 10.0.17134 x86_64)
Either use webdriver-manager to specify your chromedriver version or use --webdriverUpdate=false if running e2e tests
(see: https://github.com/angular/protractor/issues/5460)
There seems to be an issue where webdriver-manager is installing ChromeDriver 85 even though Chrome 84 is the current stable release. Multiple people have reported this issue.
I've posted a workaround in issue 376
Overall, you temporarily can hardcode the version you want when using webdriver-manager, then tell protractor which version to use (since protractor can still try to install 85 and use it).
Here is the copied work-around:
We have webdriver-manager installed as project dependency (npm install --save-dev webdriver-manager)
we call webdriver-manager update --versions.chrome 84.0.4147.30 prior to running our tests. This will install the 84 chromedriver version in ./node_modules/webdriver-manager/selenium/. (We just made this as a npm script in our package.json)
We then update the protractor.conf file to have this line in the root of exports.config: chromeDriver:"./node_modules/webdriver-manager/selenium/chromedriver_84.0.4147.30.exe"**
Protractor still installs chromedriverr 85, but it will use the 84 version.
** In our case, we run our protractor tests in docker, but develop mostly on windows. So I updated the protractor.conf to have this line so that it works in either:
chromeDriver: process.platform === "win32" ? "./node_modules/webdriver-manager/selenium/chromedriver_84.0.4147.30.exe" : "./node_modules/webdriver-manager/selenium/chromedriver_84.0.4147.30"
I have had the same issue but it worked when I updated latest version of protractor which is 7.0.0

BigSur MacOS beta NetBeans Keyring issue

In Netbeans 12 using BigSur MacOS beta. Does not save SVN password.. its showing exception error is NoClassDefFoundError: Could not initialize class org.netbeans.modules.keyring.mac.SecurityLibrary
I had the same problem. It was related with the Zulu-JDK.
zulu8.54.0.21-ca-jdk8.0.292-macosx_aarch64
Solution:
Define netbeans_jdkhome in
/Applications/NetBeans/Apache\ NetBeans\ .app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf
Example:
...
# Default location of JDK:
.....
#
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home"
#Out-commented because of class not found problem.
#netbeans_jdkhome="/Users/glodde/Applications/zulu8.54.0.21-ca-jdk8.0.292-macosx_aarch64"
# Additional module clusters:

Installing MonoGame_3.0.1.mpack in XamarinStudio in Mac OS x I got this error "The Packacge 'Core v4.0' could not be found in any repository"

I'm trying to configure my development environment in my Mac with Xamarin and MonoGame but when I tried to add "MonoGame_3.0.1.mpack" in the Add-in Manager I got this error:
The Packacge 'Core v4.0' could not be found in any repository
The Packacge 'Ide v4.0' could not be found in any repository
This what I have installed on my Mac with no errors:
-Installed XamarinStudio
-Installed MonoFramework-MDK-3.8.0.macos10.xamarin.x86.pkg
-Installed MonoFramework-MRE-3.8.0.macos10.xamarin.x86.pkg
I'll really appreciate if any of you knows how can install MonoGame_3.0.1.mpack in Xamarin on Mac OS x
The issue is that that version of the template is not compatible with the version of Xamarian Studio you have installed. Until the newest version of Xamarian Studio is released for Mac, you won't be able to install that template.
However, you can download the template from here. It is compatible with the Mac OS X build version 5.5.2 of Xamarian Studio.

Phonegap/Cordova facebook plugin not working on version 3.0

Tried to install facebook plugin with Cordova 3.0 but it's not working. I tried using various branches which seem updated but none found is working. At least with the automated installer.
Is there a version of this plugin ported to Cordova 3.0 ?
I found a branch of the plugin that is working(almost) with the new plugin architecture in 3.0. The branch is located here. Plugman does not work so you have to manually install it. After installation you need to remove the .api in ConnectPlugin.java package names:
import org.apache.cordova.api.CallbackContext;
import org.apache.cordova.api.CordovaPlugin;
import org.apache.cordova.api.PluginResult;