Navigate to the Content assist in Eclipse. Windows menu -> Preferences -> Java -> Editor -> Content assist Enter the following text in the Auto activation triggers for Java box: abcdefghijklmnopqrstuvwxyz.
I had to run the Webdriver scripts on a Firefox and I had to use a particular proxy to get access to the QA/Dev environment. Here is the code that you can use to change the proxy settings. FirefoxProfile firefoxProfile = new FirefoxProfile(); firefoxProfile.setPreference(“network.proxy.type”, 1); firefoxProfile.setPreference(“network.proxy.http”, “100.00.100.100”); firefoxProfile.setPreference(“network.proxy.http_port”, 80); firefoxProfile.setPreference(“network.proxy.ssl”, “100.00.100.100”); firefoxProfile.setPreference(“network.proxy.ssl_port”, 80); firefoxProfile.setPreference(“network.proxy.no_proxies_on”, “”); […]
I was creating a script in Java and wanted to run the script using TestNG and Eclipse. I was getting the following error when running the script. The constructor DefaultSelenium(String, String, String, String) is undefined To solve the issue you will have to make change to the setUp method. My code was something like this […]
Here is a sample Selenium RC TestNG script that you can use to create selenium scripts in java and debug or run the test scripts using TestNG. Before you do that you will have to add the TestNG Eclipse plugin; Please have a look at the details given below: You can download TestNG here. For […]