summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/HyperLinkTestCase.php
blob: 9fdb78bf18c40fc5927b47cfe955c0c84a4ac32a (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->assertSourceContains("Welcome to");
		$this->assertSourceContains("Body contents");
		$this->assertElementPresent("//a[img/@alt='Hello World']");
		$this->assertElementPresent("//a[contains(text(),'Body contents')]");
	}
}