Selenium - WebDriver & Chrome Driver - selenium-webdriver

I have newly setup the selenium in my pc.
I have installed 9.0.4 Java and installed the eclipse oxygen. I have configured the environment variables and downloaded chrome driver is placed in my folders.
I have downloaded the selenium jar files configured those as well.
But, when I type the webdriver in the selenium code, I am getting the error prompt at left side as per the attached snap in this message.
Can some one please look into this and suggest to proceed further ?
Thanks,
Venkat

Have you put your jar file outside the project , if you have done , you have to set Deployment Assembly along with build path. Just right click on project , go to properties and set this.

1)selenium jar is missing in library folder so You can do one thing... Create a folder into your project and and copy selenium jar, and build path the project and select selenium jar, you will get entry into library folder.
2)Refresh the project or restart your eclipse

Related

how to configure selenium(webdriver)framework under eclipse

i have readymade framework for selenium(webdriver)(datadrievnfreamework). Please tell me how to configure that framework under eclipse . please help me out
Put some efforts to search in Google.
Kindly refer the eclipse guide for setting the environment. For some basic setup, refer:
http://selftechy.com/2011/03/18/selenium-setting-up-selenium-eclipse
For parameterization, refer:
http://diveintotesting.com/2013/02/23/parameterizing-selenium-webdriver-tests-using-testng-a-data-driven-approach/
For further coding using webdriver, refer:
https://code.google.com/p/selenium/wiki/GettingStarted
Follow below steps to configure selenium webdriver with eclipse
Download latest selenium jar zip files for JAVA form
http://www.seleniumhq.org/download/
(http://selenium-release.storage.googleapis.com/3.4/selenium-java-3.4.0.zip)
Extract zip file
Open Eclipse > Add New java Project by right click on left side
package explorer
Right Click on package explorer > NEW > Java Project
Right click on project > Select properties > Select Java Build Path
Select Libraries tab > Click on Add External JARs
Import all jar by selecting form extracted selenium jar folder & click on OK
Note - Every Time you need to follow same process , when you create new Selenium Automation project

How to install CakePHP plugin for PHP IDE Netbeans 7.2

I have the PHP IDE version of NetBeans 7.2 and have installed the plugin successfully (it is shown as enabled in the plugins list and appears in the project properties). However, nowhere do I see a place to select the framework as shown in the download page (http://plugins.netbeans.org/plugin/44579). When creating a new IDE there is no step 4, just 1,2, and 3...so obviously something is missing. Is there a dependent plugin I need or maybe I need the full, huge version of NetBeans?
I am using Windows 7, PHP 5.3, CakePHP 2.1.2
Thanks
The plugin was working correctly, however it requires that there only be 1 app in the project folder in the same directory as the CakePHP lib folder. The NetBeans project folder is not the 'app' folder that contains the Controllers and Views folders, instead it must be the folder that contains the app and lib folders.
Just go to NetBeans' main menu Tools > Plugins > Available Plugins. Choose the plugin you want and install it.

Is it possible to connect Selenium-IDE to ChromeDriver

I;m just starting to test my app with Selenium and I have downloaded Selenium-IDE and wrote a few test cases. They run nice in Firefox and all pass. I also need to test my app in Chrome and IE. Is it possible to connect the IDE to the Chrome web driver so I can run them there as well?
You can export the scripts as Wedbriver scripts and run it against other browser.
Now you can,
from How to run tests from Selenium IDE in Chrome :
Ever wondered if you could use Selenium IDE for Chrome? You’ve probably heard that the IDE only runs in Firefox, which means Google’s much-famed browser is out of reach. Actually, there’s a neat little feature that lets you run Selenium IDE in Chrome.
The feature is called WebDriver Playback. Here’s how you can use it:
Launch Selenium IDE.
Go to ‘Options’ and select “Options…” in the drop-down menu.
In the Options menu, select the “WebDriver” tab.
Check the “Enable WebDriver playback” checkbox.
Find the “Browser choices” input field right below the checkbox. Below the input field, you will see browser options. These include “android, chrome, firefox, htmlunit, internet explorer, iPhone, iPad”.
Substitute “firefox” with “chrome”. Note that both variants are lowercase.
Download the Selenium standalone JAR file and ChromeDriver. Add both files to the same folder on your local computer.
Use Terminal to navigate to the folder with the downloaded files.
Start Selenium server and ChromeDriver server via Terminal: java -jar selenium-server-standalone-2.43.1.jar -Dwebdriver.chrome.driver=chromedriver.exe
Open Selenium IDE and run the test script. Note that the script will run in one of the more or less recent versions of Chrome.

Google App Engine - recompile GWT module

I've created Google App Engine project in Java using Eclipse following the book Beginning Java Google App Engine
Before I bought this book I had created projects with unchecked option 'Use Google Web Toolkit' but for this project I checked it (following the book)
Eclipse generated several files for me and I run my applications, copy link to Web Browser (http://localhost:8888) and it gives me an error:
GWT module name_of_my_project may need to be (re)complied
I work on Ubuntu 10.04 (I was testing my application using Firefox and Chromium) and I was trying run my application on Windows XP (using the same Web Browsers) with the same effect (just one difference - Google Chrome made me install Web Toolkit...so I did it but it still gives the same error)
Thanks in advance :)
I get the same error message at unexpected times using development on IntelliJ with Chrome. The message still appears when I stop and start development mode. The problem is fixed after I delete the compiled files (class files, js files) in the out folder. On eclipse, you can try deleting files and folders generated in the war folder (delete the folder that has the project name, if it exists, and the classes folder under /war/WEB-INF/classes). Hope this helps.
Check in your "Java Build Path" if you have the correct Default output folder (something like /target/project-name/WEB-INF/classes).
In Eclipse, do a "Clean Build".
Click on the google blue button in the Eclipse menu and select "GWT Compile Project..."
Make sure the GWT plugin is compiling your project by checking the compiler output. The GWT compiler outputs lots of things, for example you will always see something like "Compiling 6 permutations.... Compiling permutation 0..."
If you still have problems, try this page on setting up Eclipse with GWT: http://code.google.com/webtoolkit/usingeclipse.html
Thanks for your comments and suggestions. I re-installed Eclipse on Ubuntu and I installed plugin one more time and it works :)
So, be careful which version of Eclipse you use - Eclipse 3.4 has problem with GWT.

blackberry "Error Starting Module not found" adding external jar to eclipse plugin

Help
I'm using BlackBerry Java Plug-in for Eclipse Version: 1.3.0
Simulator 9800
I'm trying to run a Midlet that sucessfully runs on j2me emulator(tested).
The project compiles fine, but when I run it in the BB simulator it gives me the error:
"error starting MyApp: Module J4ME not found.
I added a jar file of J4ME as an external jar file. it seems actual j4me jar is not added to the project which
is loaded on BB simulator.
Anyway, the major problem is that it cannot run in the simulator.
I found several posts with the same problem, but the solutions they gave are for JDE, not for eclipse plugin,
or
add jar to project with "add file to project" option but that option is missing in my eclipse plug-in.
or
to add jar to other new project and then add this project to main project as dependent project(this option is also missing in eclipse)
plz kindly help me out as am new in this blackberry environmnt.
thanks in advance

Resources