I am trying to use Selenium RC to run regression tests on a website. I created a test suite using the Selenium IDE tool and 3 tests associated with it. These tests run successfully within the IDE but when I try to run them using Selenium server, I always get stuck at "Checking Resource aliases"
I'm using the following command:
java -jar /home/adam/selenium/selenium-server-standalone-2.31.0.jar -htmlSuite *firefox /usr/lib/iceweasel/firefox-bin http://devwebsite.com /root/selenium/tests/suite.html /root/selenium/results.html -firefoxProfileTemplate /root/.mozilla/firefox/9r0afiwh.profile -log debug.log
Last few lines of output where it gets stuck:
INFO: Launching a standalone server
13:51:10.594 INFO - Writing debug logs to debug.log
13:51:10.595 INFO - Java: Sun Microsystems Inc. 14.0-b16
13:51:10.596 INFO - OS: Linux 2.6.32-5-686 i386
13:51:10.603 INFO - v2.31.0, with Core v2.31.0. Built from revision 1bd294d
13:51:10.711 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
13:51:10.712 INFO - Version Jetty/5.1.x
13:51:10.714 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
13:51:10.715 INFO - Started HttpContext[/selenium-server,/selenium-server]
13:51:10.715 INFO - Started HttpContext[/,/]
13:51:46.397 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler#867e89
13:51:46.398 INFO - Started HttpContext[/wd,/wd]
13:51:46.408 INFO - Started SocketListener on 0.0.0.0:4444
13:51:46.408 INFO - Started org.openqa.jetty.jetty.Server#86f241
jar:file:/home/adam/selenium/selenium-server-standalone-2.31.0.jar!/customProfileDirCUSTFFCHROME
13:51:46.508 INFO - Preparing Firefox profile...
13:51:48.019 INFO - Launching Firefox...
13:51:48.739 INFO - Checking Resource aliases
Everything seems to work right up to the point where it actually runs the tests. Researching around showed problems with people using "Test Case" instead of "Test Suite" when naming the test suite in HTML, which I'm not doing. I also removed the XML line in the test suite file to see if it would matter. I'm not using a proxy as another user here had an issue with this error.
This is all running on a headless Debian server. There are numerous guides for demonstrating how to set this up using Xvfb. I'm sure I'm missing something simple but I can't figure out what.
I personally use the selenium webdriver. That may be an alternative to the RC client if you have something to kick off the scripts.
Related
If you are working on a latest MacBook pro with M1 chip. Installing Cassandra and starting it might throw an error.
Steps
1: Installed Jdk8
2: Installed Cassandra 4.0.1
How to start: /opt/homebrew/opt/cassandra/bin/cassandra -f
Output:
ERROR [main] 2021-10-08 00:03:12,568 NativeLibraryDarwin.java:64 - Failed to link the C library against JNA. Native methods will be unavailable.
java.lang.UnsatisfiedLinkError: /opt/homebrew/Cellar/cassandra/4.0.1/tmp/jna9964159388012624603.tmp: dlopen(/opt/homebrew/Cellar/cassandra/4.0.1/tmp/jna9964159388012624603.tmp, 1): no suitable image found. Did find:
/opt/homebrew/Cellar/cassandra/4.0.1/tmp/jna9964159388012624603.tmp: no matching architecture in universal wrapper
/opt/homebrew/Cellar/cassandra/4.0.1/tmp/jna9964159388012624603.tmp: no matching architecture in universal wrapper
at java.base/java.lang.ClassLoader$NativeLibrary.load0(Native Method)
at java.base/java.lang.ClassLoader$NativeLibrary.load(ClassLoader.java:2442)
at java.base/java.lang.ClassLoader$NativeLibrary.loadLibrary(ClassLoader.java:2498)
at java.base/java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2694)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2627)
at java.base/java.lang.Runtime.load0(Runtime.java:768)
at java.base/java.lang.System.load(System.java:1837)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988)
at com.sun.jna.Native.<clinit>(Native.java:195)
at com.sun.jna.NativeLibrary.<clinit>(NativeLibrary.java:87)
at org.apache.cassandra.utils.NativeLibraryDarwin.<clinit>(NativeLibraryDarwin.java:55)
at org.apache.cassandra.utils.NativeLibrary.<clinit>(NativeLibrary.java:98)
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:258)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:763)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:887)
INFO [main] 2021-10-08 00:03:12,596 MonotonicClock.java:199 - Scheduling approximate time conversion task with an interval of 10000 milliseconds
INFO [main] 2021-10-08 00:03:12,597 MonotonicClock.java:335 - Scheduling approximate time-check task with a precision of 2 milliseconds
WARN [main] 2021-10-08 00:03:12,597 StartupChecks.java:143 - jemalloc shared library could not be preloaded to speed up memory allocations
WARN [main] 2021-10-08 00:03:12,597 StartupChecks.java:187 - JMX is not enabled to receive remote connections. Please see cassandra-env.sh for more info.
ERROR [main] 2021-10-08 00:03:12,597 CassandraDaemon.java:909 - The native library could not be initialized properly.
Solution:
Find where is jna-..*.jar located. you can do this using
find /opt/homebrew/ -name '*.jar' | grep cassandra
Browse to https://search.maven.org/artifact/net.java.dev.jna/jna/5.8.0/jar and download the jar from top-right downloads button on the page.
Replace your jna-..*.jar file with the one you downloaded. In my case i replaced jna-5.6.0.jar. Remember to keep the file name as your previous file name. Example I moved jna-5.8.0.jar and renamed as jna-5.6.0.jar
mv /Users/mansooralikhan/Downloads/jna-5.8.0.jar /opt/homebrew/Cellar/cassandra/4.0.1/libexec/jna-5.6.0.jar
Restart cassandra
To echo Mansoor's answer, I'll add that the version of JNA shipped with Apache Cassandra 4.0 unfortunately is not compatible with the M1 architecture.
To remedy this, head to the "downloads" section of the JNA GitHub repo, where you should find the latest version of the JNA jar file.
https://github.com/java-native-access/jna#jna
Download JNA version 5.8 or higher, and replace the existing jna-5.6.0.jar file in Cassandra's lib/ directory (tarball-based installs).
Just to add to the answers here, I wanted to note for posterity that the issue with arm64 on Apple M1 devices not supported by JNA 5.6.0 has been raised with the Apache Cassandra project previously.
More recently, it has been reported in CASSANDRA-17019. I brought it up with the project devs/contributors and hopefully it gets reviewed and resolved soon. Cheers!
At the moment I am trying to run Intellij Idea remotely using x11 over ssh, such that I see the widgets on my personal iMac, but the IDE is actually running on my work issued MacPro. This way I can work from home during the Corona outbreak with a decent size monitor without violating company policy concerning work related code on a personal computer. To that effect I enabled X11 forwarding on the SSH daemon running on my work machine, and installed xquartz on both machines. From my home machine I was able to ssh into my work machine and run x11 programs such as xclock and xeyes without any problems. When I try to run Idea, however I get an exception:
/Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
2020-03-17 20:29:57,056 [ 2940] ERROR - nsions.impl.ExtensionPointImpl - null
java.awt.HeadlessException
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:208)
at java.desktop/java.awt.Window.<init>(Window.java:548)
at java.desktop/java.awt.Frame.<init>(Frame.java:423)
at java.desktop/java.awt.Frame.<init>(Frame.java:388)
at java.desktop/javax.swing.JFrame.<init>(JFrame.java:180)
at com.intellij.openapi.wm.impl.welcomeScreen.FlatWelcomeFrame.<init>(FlatWelcomeFrame.java:93)
at com.intellij.openapi.wm.impl.welcomeScreen.FlatWelcomeFrameProvider.createFrame(FlatWelcomeFrameProvider.java:27)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.lambda$createWelcomeFrame$1(WelcomeFrame.java:177)
at com.intellij.openapi.extensions.impl.ExtensionProcessingHelper.computeSafeIfAny(ExtensionProcessingHelper.java:45)
at com.intellij.openapi.extensions.ExtensionPointName.computeSafeIfAny(ExtensionPointName.java:60)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.createWelcomeFrame(WelcomeFrame.java:177)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.prepareToShow(WelcomeFrame.java:159)
at com.intellij.idea.IdeStarter.main(ApplicationLoader.kt:510)
at com.intellij.idea.ApplicationLoader$startApp$8$1.run(ApplicationLoader.kt:240)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:193)
at com.intellij.idea.ApplicationLoader$startApp$8.run(ApplicationLoader.kt:239)
at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
2020-03-17 20:29:57,058 [ 2942] ERROR - nsions.impl.ExtensionPointImpl - IntelliJ IDEA 2019.3.3 Build #IU-193.6494.35
2020-03-17 20:29:57,058 [ 2942] ERROR - nsions.impl.ExtensionPointImpl - JDK: 11.0.5; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2020-03-17 20:29:57,058 [ 2942] ERROR - nsions.impl.ExtensionPointImpl - OS: Mac OS X
2020-03-17 20:29:57,067 [ 2951] ERROR - nsions.impl.ExtensionPointImpl - Last Action:
2020-03-17 20:29:57,068 [ 2952] ERROR - llij.ide.plugins.PluginManager - java.awt.HeadlessException
java.util.concurrent.CompletionException: java.awt.HeadlessException
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:908)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:424)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:698)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:423)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.awt.HeadlessException
at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:208)
at java.desktop/java.awt.Window.<init>(Window.java:548)
at java.desktop/java.awt.Frame.<init>(Frame.java:423)
at java.desktop/java.awt.Frame.<init>(Frame.java:388)
at java.desktop/javax.swing.JFrame.<init>(JFrame.java:180)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.<init>(WelcomeFrame.java:48)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.createWelcomeFrame(WelcomeFrame.java:178)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeFrame.prepareToShow(WelcomeFrame.java:159)
at com.intellij.idea.IdeStarter.main(ApplicationLoader.kt:510)
at com.intellij.idea.ApplicationLoader$startApp$8$1.run(ApplicationLoader.kt:240)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:193)
at com.intellij.idea.ApplicationLoader$startApp$8.run(ApplicationLoader.kt:239)
at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
... 19 more
I tried setting one of the idea.vmoptions -Djava.awt.headless=false to help it figure out that there is a actually a remote display device, but this did not help matters. Any help welcome. I am sure I am not the only person working from home and hitting this problem.
The IntelliJ for Mac does not use X11. The moment you start IntelliJ, it will display on your MacPro. It's a big misunderstood for years that Java Application on MacOS could do X11 Forwarding.
You need to use IntelliJ for Linux, running on Linux (could be Docker Container) to do X11 Forwarding.
I'm using Aptana Studio 3 on Mac OS X. I'm trying to run my server in debug mode so I can set breakpoints and step through my code. I created the below debug configuration
with the "server" argument ...
However, when I start my server in debug mode (by right clicking on my project, selecting Debug As -> Debug Configurations and clicking the "Debug" button on the resulting dialog after I've selected the above configuration), the server starts up, but when I invoke code (using a curl command) to invoke the method, the curl method hangs, seemingly at the breakpoint ...
In the Aptana Studio console I see the "entered create" output, but I don't see the "done building" line. But the Aptana IDE doesn't highlight the line where I set the breakpoint like I'd expect it to. Below is the Aptana console. What else do I need to do so that I can interact with the IDE properly in debug mode?
Fast Debugger (ruby-debug-ide 0.7.0, debase 0.2.4.1, file filtering is supported) listens on 127.0.0.1:50900
=> Booting Puma
=> Rails 5.2.2.1 application starting in development
=> Run `rails server -h` for more startup options
[79989] Puma starting in cluster mode...
[79989] * Version 3.11.4 (ruby 2.5.1-p57), codename: Love Song
[79989] * Min threads: 5, max threads: 5
[79989] * Environment: development
[79989] * Process workers: 2
[79989] * Phased restart available
[79989] * Listening on tcp://0.0.0.0:3000
[79989] Use Ctrl-C to stop
[79989] - Worker 0 (pid: 80014) booted, phase: 0
[79989] - Worker 1 (pid: 80015) booted, phase: 0
Started POST "/users" for 127.0.0.1 at 2019-10-13 13:44:17 -0500
[1m[35m (5.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
Processing by UserController#create as JSON
Parameters: {"first_name"=>"Dave", "last_name"=>"Smith", "email"=>"test#example.com"}
entered create
The approach which you have taken is correct and as far as i know the steps to set debug configuration is also proper .
Approach 1 to Fix :
Use the rails s --debugger and check whether its working.
Approach 2 to Fix :
Try once by updating the to ruby-debug-base19 (0.11.25) ruby-debug-ide19 (0.4.12) ruby-debug19 (0.11.6) and verify once.
Approach 3 to Fix : Remote Debugging ::
As the netbeans & Aptana share the same debug core , we can do a remote debugging too , the thread mentioned here can help . Remote debugging Rails application in Aptana Studio 3 we can follow the steps in order to ensure remote debugging works.
Basically, run the ruby app using rdebug-ide -p 7000 (or whatever port you want), then inside the IDE, go to Run > Debug configurations. On the left hand side, select "Remote Ruby Debug Session" and then add a new configuration there (the plus icon above the list). Enter the proper host IP/name and port you entered on the command line.
How do we debug if we have a rake file and tasks to execute ?
If we are using a rake file and tasks to execute , you can have the reference in the thread here How to debug ruby tests in Eclipse/Aptana Studio?
1. Run > Debug As > Debug configurations. Then add an entry under Ruby application. Point it at your rake script path (say /usr/local/bin/rake) as the file to launch.
2. The Arguements should be edited to pass in your app's Rakefile as the first arg and the rake task as the second arg. (i.e. /my/path/to/project/Rakefile build).
Note :
Sometimes there might be a possibility of a specific gem causing a issue , if we remove a gem and then bundle it and try it might work out , try this if nothing works out.
Just cannot get it to work on my mac.
Its been working fine on my windows machine w/t any config changes and so on but I installed it on my Mac and running out of ideas how to get it to work
Node Version: 3.10.7
Protractor Version: Version 4.0.13
Browser(s): Chrome
Operating System and Version OS X El Capitan
Installed drivers:
/usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium
and there's chromedriver_2.25
additionally:
downloaded from https://chromedriver.storage.googleapis.com/index.html?path=2.26/
copied to: /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium
still not working
is there any way to set this in the conf file or something' ?
Log:
$ protractor conf_basic.js
[18:34:22] I/hosted - Using the selenium server at http://localhost:4444/wd/hub
[18:34:22] I/launcher - Running 1 instances of WebDriver
[18:34:23] E/launcher - The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html
[18:34:23] E/launcher - WebDriverError: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html
at WebDriverError (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:27:5)
at Object.checkLegacyResponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:639:15)
at parseHttpResponse (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/http/index.js:538:13)
at client_.send.then.response (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/http/index.js:472:11)
at ManagedPromise.invokeCallback_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:1379:14)
at TaskQueue.execute_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2913:14)
at TaskQueue.executeNext_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2896:21)
EDIT
webdriver-manager update --versions.chrome 2.26
[07:32:45] I/update - selenium standalone: file exists /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-2.53.1.jar
[07:32:45] I/update - selenium standalone: v2.53.1 up to date
[07:32:45] I/update - chromedriver: file exists /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.26mac64.zip
[07:32:45] I/update - chromedriver: unzipping chromedriver_2.26mac64.zip
[07:32:45] I/update - chromedriver: setting permissions to 0755 for /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.26
[07:32:45] I/update - chromedriver: v2.26 up to date
[07:32:47] I/update - geckodriver: file exists /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.11.1-macos.tar.gz
[07:32:47] I/update - geckodriver: unzipping geckodriver-v0.11.1-macos.tar.gz
[07:32:47] I/update - geckodriver: setting permissions to 0755 for /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.11.1
[07:32:47] I/update - geckodriver: vv0.11.1 up to date
to gave it even more permission i went to: /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium
and executed chmod 777 chromedriver_2.26
And I start it: webdriver-manager start --versions.chrome 2.26 as you told me to. Still no joy
[07:38:11] I/start - java -Dwebdriver.chrome.driver=/usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.26 -Dwebdriver.gecko.driver=/usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.11.1 -jar /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-2.53.1.jar -port 4444
[07:38:11] I/start - seleniumProcess.pid: 509
07:38:12.779 INFO - Launching a standalone Selenium Server
07:38:12.887 INFO - Java: Oracle Corporation 25.101-b13
07:38:12.887 INFO - OS: Mac OS X 10.11.6 x86_64
07:38:12.965 INFO - v2.53.1, with Core v2.53.1. Built from revision a36b8b1
07:38:13.106 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC
07:38:13.107 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC
07:38:13.107 INFO - Driver class not found: com.opera.core.systems.OperaDriver
07:38:13.107 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
07:38:13.110 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
07:38:13.110 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered
07:38:13.368 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
07:38:13.368 INFO - Selenium Server is up and running
SOLUTION
sudo protractor cons.js OR
download chromedriver and copy it to usr/local/bin
I'm guessing you are starting webdriver-manager to launch your selenium standalone server. What you'll need to do is run webdriver-manager update --versions.chrome 2.26. Then when starting up your selenium standalone server, you'll run webdriver-manager start --versions.chrome 2.26.
I am trying to run selenium test suite from terminal using following command:
java -jar /var/lib/selenium/selenium-server.jar -timeout 60 -htmlSuite " firefox /usr/lib/firefox/firefox" "http://url " "/test- case/new/test_suite.html" "/test-case/selenium.html"
running the above command in terminal outputs following->
20:08:59.134 INFO - Launching a standalone server
20:08:59.175 INFO - Java: Oracle Corporation 25.45-b02
20:08:59.176 INFO - OS: Linux 3.13.0-52-generic amd64
20:08:59.186 INFO - v2.45.0, with Core v2.45.0. Built from revision 5017cb8
20:08:59.247 INFO - Default driver org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match with current platform: LINUX
20:08:59.300 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
20:08:59.301 INFO - Version Jetty/5.1.x
20:08:59.303 INFO - Started HttpContext[/selenium-server,/selenium-server]
20:08:59.328 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler#256216b3
20:08:59.328 INFO - Started HttpContext[/wd,/wd]
20:08:59.329 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
20:08:59.329 INFO - Started HttpContext[/,/]
20:08:59.332 INFO - Started SocketListener on 0.0.0.0:4444
20:08:59.332 INFO - Started org.openqa.jetty.jetty.Server#133314b
jar:file:/var/lib/selenium/selenium-server.jar!/customProfileDirCUSTFFCHROME
20:08:59.465 INFO - Preparing Firefox profile...
<-----stuck here--->
After searching the web, I found a lot of solutions (answered before 2013). The summary of those solutions are incompatibility between selenium server and Firefox version. I tried most the solutions but none of them worked.
I am using ubuntu 14.04(docker-image). Firefox is running perfectly under xvfb. .py test suites are also running perfectly using selenium python module. The problem occurs only when the test suites are invoked from terminal.
Selenium server version: 2.45.0
Firefox version: 38.0
Need solution badly.