Compile error "driver.manage().timeouts().implicitlyWait"

455 views
Skip to first unread message

Diego Latierro

unread,
May 10, 2012, 3:21:06 PM5/10/12
to webdriver
I am having an issue trying to use ImplicityWait. I have jenkins on a
Linux sever, a project on SVN, and a build.xml where I have the
targets.
On my pc have the same code and the same libraries, when I run ant on
the windows cmd works perfect.
When I run my code from jenkins using the same build.xml the "compile"
target crashes.

compile:
[javac] Compiling 85 source files to /home/ccontrol/.hudson/jobs/
Grameen/workspace/bin
[javac] /home/ccontrol/.hudson/jobs/Grameen/workspace/src/util/
ParentTestCase.java:24: cannot find symbol
[javac] symbol : method timeouts()
[javac] location: interface org.openqa.selenium.WebDriver.Options
[javac] driver.manage().timeouts().implicitlyWait(1,
TimeUnit.SECONDS);
[javac] ^
[javac] 1 error

I am stuck with the same problem for days now, if anyone can give me a
clue would be great

Krishnan Mahadevan

unread,
May 11, 2012, 8:04:54 AM5/11/12
to webd...@googlegroups.com
Have you ensured that you checked in the libraries that you have in your PC, into your version control because that is where jenkins pulls the code from. 

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



--
You received this message because you are subscribed to the Google Groups "webdriver" group.
To post to this group, send email to webd...@googlegroups.com.
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.


Diego Latierro

unread,
May 11, 2012, 8:37:32 AM5/11/12
to webdriver
I download the jar files from jenkins server to my pc, and still
having the same problem.
I will try to update the ant version on jenkins

On May 11, 9:04 am, Krishnan Mahadevan

Mark Collin

unread,
May 11, 2012, 9:19:21 AM5/11/12
to webd...@googlegroups.com
I think you need to update the Selenium version on jenkins, not ant.

Diego Latierro

unread,
May 11, 2012, 9:51:19 AM5/11/12
to webdriver
I run ant -v on the server console, and get this
http://screencast.com/t/KJVyFE89S

Please correct me if I am wrong, I guess that the issue could be the
jdk version or the antlib.xml not found.


On May 11, 9:37 am, Diego Latierro <dlatie...@timbasoftware.com>

Diego Latierro

unread,
May 11, 2012, 3:18:32 PM5/11/12
to webdriver
I have selenium-server-standalone-2.17.0.jar

On May 11, 10:51 am, Diego Latierro <dlatie...@timbasoftware.com>
wrote:
> I run ant -v on the server console, and get thishttp://screencast.com/t/KJVyFE89S

Diego Latierro

unread,
May 14, 2012, 2:13:19 PM5/14/12
to webdriver
I research on my file structure, and it was the selenium server.
Modify the build.xml and problem solve.
Now I am hitting this error:

org.openqa.selenium.firefox.NotConnectedException: Unable to connect
to host 127.0.0.1 on port 7055 after 45000 ms.

I read that could be the FF version, is that correct?

On May 11, 4:18 pm, Diego Latierro <dlatie...@timbasoftware.com>

Mark Collin

unread,
May 15, 2012, 4:16:42 AM5/15/12
to webd...@googlegroups.com
Do you always get this, or only when running it through ant?

Can we see you test code?

-----Original Message-----
From: webd...@googlegroups.com [mailto:webd...@googlegroups.com] On
Behalf Of Diego Latierro
Sent: 14 May 2012 19:13
To: webdriver
Subject: [webdriver] Re: Compile error
"driver.manage().timeouts().implicitlyWait"

Diego Latierro

unread,
May 15, 2012, 9:16:20 AM5/15/12
to webdriver
The code is big, but is seems that the server is not starting the
browser or I cannot connect with webdriver.

A fragment of the code is:

protected static WebDriver driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(1, TimeUnit.SECONDS);

then I just try to click on a button using
driver.findElement(By.xpath("CORRECT_XPATH")).click();

i hit this error on jenkins server (using ant), on my pc code works
fine

Failed to connect to binary FirefoxBinary(/usr/bin/firefox) on port
7055; process output follows: Build info: version: '2.17.0', revision:
'15540', time: '2012-01-16 16:52:31' System info: os.name: 'Linux',
os.arch: 'i386', os.version: '2.6.18-028stab091.2', java.version:
'1.5.0_20' Driver info: driver.version: FirefoxDriver


org.openqa.selenium.WebDriverException: Failed to connect to binary
FirefoxBinary(/usr/bin/firefox) on port 7055; process output follows:


Build info: version: '2.17.0', revision: '15540', time: '2012-01-16
16:52:31'
System info: os.name: 'Linux', os.arch: 'i386', os.version:
'2.6.18-028stab091.2', java.version: '1.5.0_20'
Driver info: driver.version: FirefoxDriver
at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:
107)
at
org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:
157)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:
93)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:136)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:78)
at util.ParentTestCase.init(Unknown Source)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable
to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox
console output:




at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:
95)

On May 15, 5:16 am, "Mark Collin" <mark.col...@lazeryattack.com>
wrote:

Krishnan Mahadevan

unread,
May 15, 2012, 9:18:05 AM5/15/12
to webd...@googlegroups.com
Does your jenkins instance have Firefox installed on it ?
And is it a headless instance ?

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"


Mark Collin

unread,
May 15, 2012, 9:30:16 AM5/15/12
to webd...@googlegroups.com
Starting with the basics.

Have you got FireFox installed on your Jenkins server?
Does /usr/bin/firefox exist?
Does the machine your Jenkins server is running on have a GUI?
Is Jenkins using a user that can access the GUI?

Diego Latierro

unread,
May 15, 2012, 10:24:38 AM5/15/12
to webdriver
Yes, Jenkins have Firefox 3.6.
Didn't understand the headless instance question

On May 15, 10:18 am, Krishnan Mahadevan
<krishnan.mahadevan1...@gmail.com> wrote:
> Does your jenkins instance have Firefox installed on it ?
> And is it a headless instance ?
>
> Thanks & Regards
> Krishnan Mahadevan
>
> "All the desirable things in life are either illegal, expensive, fattening
> or in love with someone else!"
>
> On Tue, May 15, 2012 at 6:46 PM, Diego Latierro <dlatie...@timbasoftware.com

Diego Latierro

unread,
May 15, 2012, 10:28:24 AM5/15/12
to webdriver
Jenkins runs Firefox without graphic form

On May 15, 11:24 am, Diego Latierro <dlatie...@timbasoftware.com>

Diego Latierro

unread,
May 15, 2012, 10:44:54 AM5/15/12
to webdriver
To add a little more information. I have on the same server projects
running with Selenium IDE.
I want to change to WebDriver and I use the same build.xml that I used
on older projects, just change the jar files
I am missing something?



On May 15, 11:28 am, Diego Latierro <dlatie...@timbasoftware.com>
Reply all
Reply to author
Forward
0 new messages