21 May, 2014

Unable to pass string using 'sendKeys()' method

Unable to pass string using 'sendKeys()' method



Java compiler is set to 1.5 version change it to 1.6.
This is a very common problem with the Java compiler. All you need to do is just set the Java compiler 1.6 from 1.5.
To change the Java compiler version, complete the following steps:
  1. In the Project Explorer view of the Java EE perspective, right-click the project and then select Properties.
  2. Select the Project Facets page in the in the Properties window. This page lists the facets in the project and their versions.
  3. Click Modify Project.
  4. Double click the version number next to the Java facet to select a different level of Java compiler.
  5. Click Finish to close the Modify Faceted Project window and then click OK.