Selenium RC -htmlsuite error - html

after running the command java -jar selenium-server.jar -htmlSuite "iexplore" "http://www.google.com/" "C:\Selenium\suite.html" "C:\Selenium\results.html" browser opens and shows page cannot be displayed on the test suite column.Help me out in this?

Normally when that happens it is because the path to the Selenium Test Suite is wrong. have you made sure that it is loading the correct version?
I also noticed that you are loading the browser without the * in the browser name. E.g use
java -jar selenium-server.jar -htmlsuite *iexplore http://www.google.com c:\selenium\suite.html C:\selenium\results.html
I have a tutorial on how to get this going on my site at http://www.theautomatedtester.co.uk/seleniumtraining/selenium_rc_setup.htm

Try below command and let us know your feedback, it should work.
java -jar selenium-server.jar -htmlSuite "iexplore" "http://www.google.com/" "C:\Selenium\suite.html" "C:\Selenium\results.html" -port 4444

Related

org.openqa.selenium.remote.ProtocolHandshake createSession chrome

i am getting error org.openqa.selenium.remote.ProtocolHandshake createSession in selenium webriver when i run my file which will first launch the url and do login . i am using chrome v70 , chrome driver v2.43 and selenium server standalone v 3.13.0. Please can you help me
Remove the selenium server standalone v 3.13.0 from the Library tab of eclipse and importing of Selenium-java v3.13.0 and it will works

How to run selenium IDE on chrome

I want to run selenium IDE on chrome. for that i have to write following cmd command. As it is shown here
E:\Automation\Selenium>java -jar selenium-server-standalone-3.5.3.jar chromedriver.exe
But it gives me the error like below :
Exception in thread “main” com.beust.jcommander.ParameterException: Was passed main parameter ‘chromedriver.exe’ but no main parameter was defined
at com.beust.jcommander.JCommander.getMainParameter(JCommander.java:914)
at com.beust.jcommander.JCommander.parseValues(JCommander.java:759)
at com.beust.jcommander.JCommander.parse(JCommander.java:282)
at com.beust.jcommander.JCommander.parse(JCommander.java:265)
at com.beust.jcommander.JCommander.(JCommander.java:210)
at org.openqa.grid.selenium.GridLauncherV3$1.setConfiguration(GridLauncherV3.java:227)
at org.openqa.grid.selenium.GridLauncherV3.buildLauncher(GridLauncherV3.java:155)
at org.openqa.grid.selenium.GridLauncherV3.main(GridLauncherV3.java:75)
Please let me know if am doing anything wrong in the above command.
You need to run it like this
java -jar -Dwebdriver.chrome.driver=chromedriver.exe selenium-server-standalone-3.5.3.jar

flashpunk ui wont show

According to a tutorial on tuts+(http://code.tutsplus.com/tutorials/how-to-make-ui-components-for-flashpunk-games--active-11364), I have made everything so far to step 12. As I tried to test this Project nothing Pops up except the Default Flash Debugger which is actually blank. i'm not sure if the tutorial is too old or no longer compatible with Flashdevelop or flashpunk library. Btw. i'm working with an as 3 library called flashpunk.
What I seek: is that the ui Pops up according to that tutorial
Unfortunately I can not provide the code because of the code Format error. and I tried to press ctrl and k. and pasted my code in them but it still didnt work.
If possible, please add a working code snippet or a screenshot.
Thanks in advance.
The Output
Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe "C:\Users\Admin\Documents\Gamesamples\UI\Flashpunk UI\UI.as3proj" -ipc 9ad09f9f-2fcd-467d-ab27-3e043421080f -version "4.6.0; 18.0" -compiler "C:\Users\Admin\AppData\Local\FlashDevelop\Apps\flexairsdk\4.6.0+18.0.0" -library "C:\Program Files (x86)\FlashDevelop\Library"
Building UI
mxmlc -load-config+=obj\UIConfig.xml -debug=true -incremental=true -swf-version=29 -o obj\UI635736784381832664
Starting java as: java.exe -Xmx384m -Dsun.io.useCanonCaches=false -Duser.language=en -Duser.region=US -Djava.util.Arrays.useLegacyMergeSort=true -Dapplication.home="C:\Users\Admin\AppData\Local\FlashDevelop\Apps\flexairsdk\4.6.0+18.0.0" -jar "C:\Users\Admin\AppData\Local\FlashDevelop\Apps\flexairsdk\4.6.0+18.0.0\lib\fcsh.jar"
INITIALIZING: Adobe Flex Compiler SHell (fcsh)
Starting new compile.
Loading configuration file C:\Users\Admin\AppData\Local\FlashDevelop\Apps\flexairsdk\4.6.0+18.0.0\frameworks\flex-config.xml
Loading configuration file C:\Users\Admin\Documents\Gamesamples\UI\Flashpunk UI\obj\UIConfig.xml
obj\UI635736784381832664 (87932 bytes)
(fcsh)Build succeeded
Done(0)
[Starting debug session with FDB]

impossible to run a test through the selenium RC on chrome

I run a test through selenium RC and it works fine. I use this command line:
java -jar selenium-server-standalone-2.32.0.jar -firefoxProfileTemplate "SeleniumProfile" -htmlsuite "*firefox" "https://www.google.com" "testSuite1.html" "result.html"
I try to run the same command on chrome by replacing "*firefox" by "*googlechrome" and it fails:
Chrome is open but displaying the following message : "You are using an unsupported command-line flag: --disable-web-security. Stability and security will suffer"
I got the same result by removing -firefoxProfileTemplate "SeleniumProfile" in the command line.
Do you have any idea of what I have to modify to make it works?
Thanks by advance,
Thomas.
I think you have to point to Chrome driver, so add this:
-Dwebdriver.chrome.driver=C:\grid2\chromedriver.exe
Download the driver here: https://code.google.com/p/chromedriver/downloads/list
and modify the path wherever you want.
Of course, you have to remove the Firefox profile reference.
Hope it helps.
You can add the following two lines which should fix this error:-
System.setProperty("webdriver.chrome.driver", "C:\Users\Administrator\Documents\selenium\chromedriver_win32\chromedriver.exe");
WebDriver driver = new ChromeDriver();

JavaFx 2.0 + EJB + Netbeans - Runtime Exception

please,
I wrote a test app in JavaFx 2.0 + EJB in the Netbeans IDE and I got a problem running this app outside netbeans.
I have a form using FXML and an action of this form runs a EJB method. I am using the Glassfish Server.
When I run this test app on netbeans it works perfectly, but when I run the app outside of Netbeans like jnlp or in the browser ... the app can't access the EJB methods. I couldn't see the error message in webstart or in the browser. So, I ask:
1) How can I see the error message in a web start or in the browser? (like javaws test-app.jnlp)
2) I guess the error occurs because of classpath issues. (I need gf-client.jar and javaee-api-6.0.jar in the classpath in order the app works). How can I assure these jars are in the classpath?
Sorry by my english.
Thanks,
Cleber.
to see errors from jnlp you need to enable Java Console:
Control Panel - Java Properties - Advanced - Java Console - Enable Console
for jnlp case all external libs should be stated in jnlp file. Usually NetBeans do it for you, but you can debug this case by reviewing Java Console output.