Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

I have installed selenium-server-standalone-2.33.0.jar , phpUnit, selenium extension for phpUnit.

This test run ok

$this->url('/');
$this->assertEquals('my title',$this->title());

But when I try to use $this->byClassName('sideNav');

I get

Uncaught exception 'BadMethodCallException' with message 'The command http://127.0.0.1:4444/wd/hub/session/b527030f-a368-4845-b50c-2889910da917 is not recognized by the server.

What can be the reason ?!

share|improve this question

1 Answer 1

Try the following, it should work:

$this->element($this->using('css selector')->value('*[class="sideNav"]'));

instead of

$this->byClassName('sideNav');
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.