summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/HyperLinkTestCase.php
blob: 3c80254fea294500531afc4dc67c31171661510f (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->verifyTitle("PRADO QuickStart Sample", "");
		$this->assertElementPresent("//a[@href=\"http://www.pradosoft.com/\" and @target=\"_blank\"]");
		$this->assertTextPresent("Welcome to", "");
		$this->assertTextPresent("Body contents", "");
		$this->assertElementPresent("//a[img/@alt='Hello World']");
		$this->assertElementPresent("//a[contains(text(),'Body contents')]");
	}
}