summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/quickstart/Controls/HyperLinkTestCase.php
blob: 1fcb2744a72a237331291c243692740b88ad9761 (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=\"https://github.com/pradosoft/prado/\" 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')]");
	}
}