Firefox browser crashing Marionette error gecko selenium [duplicate] - selenium

I'm new to selenium webdriver and java programming. Trying to resolve the error in eclipse 2018-12 "The import org.openqa.selenium.WebDriver cannot be resolved" Im using java 11, selenium standalone server 3.141.59 . Kindly help. I'm unable to import jar files Below is the screenshot

As per Can't compile Java9 module with selenium-java as dependency it seems the Selenium packages can't be compiled with Java 9 due to split packages and till May 15, 2018 Selenium wasn't fully compatible with Java 9.
But as per this comment #Jarob22 mentioned, Selenium works just fine using Java 10. Java 9 is already eol and there's not much point adding extra stuff to try and support just it if 10 works.
But with the landing of e57914a Simon introduced us with basic JPMS support. With this availability (mhomnag/selenium-java10-reproducer#bc63889) now actually builds but you may have to Remove the WebDriverWaiter and just use a sleep for now.
Java 11
As you are using java.version: '11.0.1', selenium-server-standalone-3.141.59.jar is still not compatible with Java 11. But once Java 11 ships and Buck supports it the toolchain witll be rejiged to support Java 11.
Solution
The strategic solution will be to install the latest version of JDK 8u212 and execute the #Tests

Related

Which firefox version is compatible with selenium webdriver 3.6.0? [duplicate]

This question already has answers here:
Which Firefox browser versions supported for given Geckodriver version?
(2 answers)
Closed 3 years ago.
I'm using Protractor to fulfill my automation needs, The IDE that I'm using is VS code. I was able to run my automation scripts against Chrome, But when it comes to firefox most of my test cases are getting failed. It seems like some compatibility issue to me. Can anyone help me to fix this?
Here are the details of the versions that I currently have on my machine:
Selenium web driver version: 3.6.0
Firefox version: 57.0
Gecko driver version: 0.19.0
I have tried installing firefox version 47.0, But it didn't work. It seems that selenium web driver couldn't connect
According to GeckoDriver documentation
Selenium users must update to version 3.11 or later to use geckodriver
Gecko driver version: 0.19.0 supports Firefox versions from 55 to 62 inclusively
So I believe you have to play with the webdriver-manager, theoretically it should be possible to automate any desktop/mobile browser version given you use matching Selenium Standalone Server / driver / client

How can I work on headless browsers with htmlunit driver in selenium-java 3.12 and java 1.8

In versions lower than 2.52 with (java 1.7), selenium-java comes integrated with the same and I had to simply add selenium lib jars containing htmlunit driver to the build path. Now on google search I found the latest htmlunit driver version is 2.9 and downloaded the jar and added it to the build path. Still it doesn't work.
It says: "The type org.openqa.selenium.HasInputDevices cannot be resolved. It is indirectly referenced from required .class files Configure build path". Anything extra I should do to get it work? It is for headless automated tests.
How to solve this issue, pls help.
It is just a mismatch of the versions of required dependancies which is clearly mentioned here .
So, right now everything works fine with selenium webdriver 3.12, java 1.8 and htmlunitdriver 2.31

Use most recent browser version with JMeter Selenium Webdriver

Im trying to use JMeter with the Selenium WebDriver plugin to do some testing. I know that it requires Firefox v. 26, however I find this to be pretty useless given that testing on anything besides the most recent browser version is pointless, as that is what users will be using.
Using the current WebDriver plugin with Firefox v 50 results in the 'browser.get()' not working. Is there a way to get the plugin to work with Firefox 50?
The latest Selenium/WebDriver Support plugin available via JMeter Plugins manager as of now is version 1.4.0. It comes with selenium-firefox-driver-2.52.0
It means any browser supported by Selenium 2.52.0 will be supported
Looking into Selenium Changelog Selenium 2.52.0 supports Firefox 45 which is an ESR release according to Mozilla FAQ:
I don't know where did you get the information regarding Firefox 26, I would recommend upgrading to Firefox 45 which should be supported till June 2017 and hopefully JMeter Plugins maintainers will upgrade Selenium libraries to version 3 by that time.
In general WebDriver will be always behind the browsers development so you will have to live with the supported versions.
References:
JMeter Plugins Forum
The WebDriver Sampler: Your Top 10 Questions Answered

Selenium tests do not run. No matter how basic the test is, and it also displays a "Process Timed out Error"

I am currently debugging an error made by My Selenium2 test case. Made on a Ubuntu OS.
The version for Selenium server that I'm currently using is 2.28.0.
The processes I've done so far:
Reinstalled Netbeans IDE
Current Version 7.4
Installed Plugins
Version: 1.0 Source: 1359458324_org-netbeans-modules-selenium-php.nbm, Certified Plugins, org-netbeans-modules-selenium-server.nbm
Selenium Module for PHP
Selenium testing framework for web application
JUnit
Includes the JUnit unit testing library and corresponding library definitions. 3.x and 4.x versions are both included.
Selenium Server
Selenium Server control
Modules installed: Selenium Module for PHP, JUnit, Selenium Server
Install Java
Java Version: 1.8.0_31
Installed PHPUnit
PHPUnit Version: 4.4.5 by Sebastian Bergmann
System Details:
ubuntu 12.04 LTS
The code for my selenium test:
class newSeleneseTest extends PHPUnit_Extensions_Selenium2TestCase {
public function setUp() {
$this->setBrowser("firefox");
$this->setBrowserUrl("http://google.com/");
}
public function testMyTestCase() {
$this->url("http://google.com/");
}
}
The error that's eating my soul:
Time: 45.2 seconds, Memory: 4.50Mb
There was 1 error:
1) newSeleneseTest::testMyTestCase
PHPUnit_Extensions_Selenium2TestCase_WebDriverException: Process timed out after waiting for 45000 ms.
java.lang.InterruptedException
FAILURES!
Tests: 1, Assertions: 0, Errors: 1.
That's about what I can share so far.
Alright, finally got this question solved.
It was not a matter of modules, plugins, codes, and selenium version that solved this problem for me. Downloading xampp and starting it's services did.
Once you have downloaded Xampp, you should stop the server service in Selenium. In my case I used netbeans as my IDE. Once I have started the xampp service, and restarted the Selenium service on my Netbeans, thankfully it worked. So there. If anyone encounters the same problem as me. I hope this will help.
UPDATE (Fevrier 4, 2014)
If it is still not working, try re-installing firefox. I don't know what's happening now, it was debugged by my friend. As of now Selenium is working fine.....
It "appears" that your code is using version 1.0 of Selenium. You should find something newer to work with. Most likely that is your problem.
Selenese is the protocol that was in place before Selenium 2.0 introduced webdriver wire-protocol.

What is the compatible version of Selenium RC with Selenium IDE 2.5.0?

I have installed the selenium ide 2.5.0 add-on for firefox and after exporting the test case as Java/JUnit 4/ Web Driver. When I try to execute it with JUnit testing I always get exceptions when some class from selenium is not found. I have used selenium-api-4.2.0.jar and selenium-server-stendalone-2.42.2.jar. Than I have also tried switching from selenium-api-4.2.0.jar to selenium-api-2.42.2.jar but there always a class missing.
Which is the correct selenium-api and selenium-server-stendalone Jar to use for the 2.5.0 IDE?
Thnx in advace
This graphic in the documentation shows you how all the jars relate to each other. The selenium-server-standalone by itself contains all of those and all the dependencies.
Selenium IDE does not export code that uses the Selenium-RC API, it only uses Selenium WebDriver API.
Generally, unless you are doing something very particular, you want to use the latest stable release of everything.
If you still have problems, have a read through this, post your code, post your error messages.