Hi..
I´m trying to write a very simple test with SimpleTest but it fails just at the beginning.
I used the method clickLink and this test fails every time. Theres a link in my navigation called "Testlink". I wrote a small test which looks like the following:

  function setUp() {
    parent::setUp();
    $user = $this->drupalCreateUser(array('administer site configuration'));
    $this->drupalLogin($user);
  }
  
  function testTestlinkLink(){
    $this->drupalGet('http://localhost/drupal/index.php');
    $this->clickLink(t('Testlink')); 
  }

If i run the test, i get the following output:

12 passes, 1 fail, and 0 exceptions
...
Clicked link "Testlink" () from http://localhost/drupal/index.php	Browser	mytest.test	30	TestlinkTest->testTestlinkLink()

If i click the link manually everything is fine.

Does anybody know what´s wrong?

Comments

iterator’s picture

Anyone?

iterator’s picture

The clickLink function works fine with drupal links like "Log out". But my own links don´t work.