I get the following error when I try to run my selenium code in order to run the chrome driver and test logon functions in EC2 Box.
I am running an Xvfb server like this in another Xvfb :1 -screen 0 1366x768x24 -ac terminal Xvfb :1 -screen 0 1366x768x24 -ac .
I also added export DISPLAY=:1 to /usr/bin/google-chrome-stable
Basicaly I'm trying to test the signin functionality at this link: https://talentconnect.pge.com/sap/bc/webdynpro/sap/hrrcf_a_startpage_ext_cand?sap-wd-configId=ZPERJ_STARTPAGE_EXT_CAND&sap-client=810
And as soon as the code types sendkey() , calls the credentials for logging in, it gives this error.
Error Log:
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: an X display is required for keycode conversions, consider using Xvfb (Session info: chrome=31.0.1650.63) (Driver info: chromedriver=2.8.240825,platform=Linux 3.2.0-36-virtual x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 83 milliseconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.2.0-36-virtual', java.version: '1.7.0_25' Session ID: 9e7150582926e064d5c93c97a87b9008
source share