Running 'Test'
1.store on Computer Science with value target... OK
2.store on STUDY with value tab... OK
3.store on Undergraduate with value type... OK
4.open on https://www.leeds.ac.uk/... OK
5.setWindowSize on 1280x800... OK
6.assertTitle on University of Leeds... OK
7.assertElementPresent on css=#navItem1000 with value ${tab}... OK
8.click on linkText=${tab}... OK
9.assertElementPresent on css=#navItem116000 with value ${type}... OK
10.click on linkText=UNDERGRADUATE... OK
11.assertElementPresent on css=.heading with value ${type}... OK
12.assertElementPresent on css=.btn--hollow with value Course Search... OK
13.click on linkText=COURSE SEARCH... OK
14.assertText on css=div.local-header-title > a with value Course Finder... OK
15.assertText on css=h1.heading-underline.color-white with value Search for courses... OK
16.type on css=#searchCourse with value ${target}... OK
17.assertValue on css=#degreeType with value UG... OK
18.click on css=.btn-lg... OK
19.assertText on css=h1.heading-underline with value Search results... OK
20.verifyValue on css=input[name="query"] with value ${target}... OK
21.verifyValue on css=#degreeType with value UG... OK
22.verifyValue on css=#entryYear with value 201920... OK
23.store on 1 with value x... OK
24.store on 2 with value limit... OK
25.while on ${limit} > 0... OK
26.storeText on css=tr:nth-child(${x}) a with value name... OK
27.if on ${name}.includes(${target})... OK
28.click on linkText=${name}... OK
29.verifyElementPresent on css=h1.heading-underline.h2-lg with value name... OK
30.click on id=return-to-search-results... OK
33.end on ... OK
34.executeScript on return ${x} - -1 with value x... OK
31.else on ... OK
32.executeScript on return ${limit} - 1 with value limit... OK
35.end on ... OK
'Test' completed successfully