java - DesiredCapabilities object not getting its properties -
i trying use desiredcapabilities in selenium 1 of project. have created new project , imported selenium standalone jars along libs (tried 2.44 , 2.45 versions). have written below code,
import org.openqa.selenium.remote.desiredcapabilities; public class desiredcapatest { desiredcapabilities capabilities = new desiredcapabilities(); capabilities. }
when write 'capabilities.' expect see different options set etc. seeing message 'unavailable-bsh.capabilities'. same code working fine in office machine.
my home machine windows 8.1 , office machine windows 7, not sure whether matter. awaiting feedback.
the function list not displayed when not have jar file: selenium-java-2.43.0.jar added build path of project.
please make sure have jar files added build path.
- right click on project->build path->configure build path
- goto libraries->add external jar files
- add jar files made available selenium (please check bsh-1.3.0.jar well)
Comments
Post a Comment