selenium-server

Invalid response while accessing the Selenium Server

旧街凉风 提交于 2020-02-04 08:12:31
问题 I tested PHPUnit with the Selenium Server but I can't test something like login button. If I write for my login element css=input.login like that $this->click("css=input.login"); but I see the following errors Invalid response while accessing the Selenium Server and `Value does not implement interface Event. 回答1: This turns out to be a Selenium Server bug, solved in the latest version. But this bug still can be encountered in the Netbeans Selenium Server plugin which is using an older version

java.lang.UnsupportedClassVersionError: org/openqa/gr id/selenium/GridLauncher (Unsupported major.minor version 50.0)

て烟熏妆下的殇ゞ 提交于 2020-01-12 14:02:44
问题 I got this selenium server jar file in my Selenium folder. When I'm trying to execute this with java - jar selenium-server-standalone-2.0b3.jar command I'm getting this version difference error. Can anyone please show me where I'm making a mistake? Exception in thread "main" java.lang.UnsupportedClassVersionError: org/openqa/gr id/selenium/GridLauncher (Unsupported major.minor version 50.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown

Connection refused! Is selenium server started nightwatch on edge

感情迁移 提交于 2019-12-31 05:40:10
问题 I have create a project. It is a vue.js application. There is a small set of unit tests (jest) and an end-to-end test (night watch). When I try and run the end-to-end test using npm i get: Error retrieving a new session from the selenium server Connection refused! Is selenium server started? { value: { message: 'Unable to create session from org.openqa.selenium.remote.NewSessionPayload@16b328bc\nBuild info: version: \'3.12.0\', revision: \'7c6e0b3\', time: \'2018-05-08T15:15:08.936Z\'\nSystem

Remote File Upload Protractor test

痴心易碎 提交于 2019-12-18 04:14:08
问题 I am writing tests in protractor which a JS based framework and selenium test stack for running tests. I am facing an issue where I have to test file upload. Problem I am having is File I am trying to upload is in the test package whereas selenium node is a separate server so it will not get the file. I tried using file descriptor although the file name is set contents don’t get uploaded. Below is the code snippet that I have. var remote = require('selenium-webdriver/remote'); browser

Slow startup of Selenium-Server-Standalone on OSX

怎甘沉沦 提交于 2019-12-13 01:25:54
问题 Selenium-server-standalone has a 5 seconds delay while starting. If I run selenium with debug option it shows that the delay is caused by New random session seed . I start Selenium server with java -jar selenium-server-standalone-2.44.0.jar . If I want to specify chromedriver then I write java -jar selenium-server-standalone-2.44.0.jar -Dwebdriver.chrome.driver=chromedriver_2.11 It happens with: OSX 10.9.5 and OSX 10.10 Java 1.7.0_51 (update 67 and update 71) selenium-server-standalone 2.42.0

How to restrict access to Selenium from ethernet?

大憨熊 提交于 2019-12-11 19:00:01
问题 I have Selenium server listening to 4444 port. How can I make selenium listen to connection only from localhost but not from the whole internet? Or is there any other way to secure Selenium? My selenium server is run with such parameters: java -jar selenium-server-standalone-2.44.0.jar -p 4444 回答1: This is something that is out of the scope of the application itself, you could place your Selenium server behind a reverse proxy (e.g., Apache Web Server) and just allow local connections to it or

Selenium server not starting for custom firefox profile

两盒软妹~` 提交于 2019-12-10 03:58:15
问题 I'm trying to start the selenium server by passing custom firefox profile to the DefaultSelenium constructor. It opens the browser with specified URL. DefaultSelenium selenium = new DefaultSelenium("localhost", 4444, "*custom \"C:/Program Files/Mozilla Firefox/firefox.exe\"",ReadConFile.readcoFile("serverName")); selenium.start(); the log is 16:39:19.246 INFO - Allocated session 4eb63d37a4ba4d2fb4e351f8f59e3ea6 for https://<myURL>, launching... then it stays like that and server doesn't start

How to run any (Chrome, Firefox, PhantomJS) browser in selenium server standalone?

烈酒焚心 提交于 2019-12-08 05:00:50
问题 My Question or Problem = I cannot run any browser with selenium remote server, how do I fix this? My environment: Operating System Windows 10 I'm using eclipse(Version: Neon Release (4.6.0)) with java 1.8 selenium Web driver 3.0.0 selenium-server-standalone-3.0.1.jar I start selenium-server-standalone in cmd. ("selenium-server-standalone-3.0.1.jar" the file is stored in the utilities folder on my c drive ) C:\Windows\system32> cd\ C:\> cd utilities C:\Utilities> java -jar selenium-server

How can I overcome Element id exception in Selenium?

我的未来我决定 提交于 2019-12-06 08:09:36
问题 T set 'id' for GWT widgets in UiBinder itself. For eg. Also added in *.gwt.xml Then I try this in Selenium test case WebElement element = driver.findElement(By.id("gwt-debug-loginButton")); Sometimes it works correctly. But some times it throws the following exception, Unable to locate element: {"method":"id","selector":"gwt-debug-loginButton"} Command duration or timeout: 62 milliseconds What i need to update? Can anyone help me? 回答1: Use WebDriverWait, to search for element after a certain

Selenium server not starting for custom firefox profile

我只是一个虾纸丫 提交于 2019-12-05 05:02:32
I'm trying to start the selenium server by passing custom firefox profile to the DefaultSelenium constructor. It opens the browser with specified URL. DefaultSelenium selenium = new DefaultSelenium("localhost", 4444, "*custom \"C:/Program Files/Mozilla Firefox/firefox.exe\"",ReadConFile.readcoFile("serverName")); selenium.start(); the log is 16:39:19.246 INFO - Allocated session 4eb63d37a4ba4d2fb4e351f8f59e3ea6 for https://<myURL>, launching... then it stays like that and server doesn't start. however, this works fine if I don't use custom profile. DefaultSelenium selenium = new