summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/HyperLinkTestCase.php
blob: bc7ef8b857d596baf14154b20e9020c4203a5085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

class QuickstartHyperLinkTestCase extends PradoGenericSelenium2Test
{
	function test ()
	{
		$this->url("../../demos/quickstart/index.php?page=Controls.Samples.THyperLink.Home&amp;notheme=true&amp;lang=en");
		$this->assertEquals("PRADO QuickStart Sample", $this->title());
		$this->assertElementPresent("//a[@href=\"http://www.pradosoft.com/\" and @target=\"_blank\"]");
		$this->assertContains("Welcome to", $this->source());
		$this->assertContains("Body contents", $this->source());
		$this->assertElementPresent("//a[img/@alt='Hello World']");
		$this->assertElementPresent("//a[contains(text(),'Body contents')]");
	}
}