-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtmltable.robot
More file actions
21 lines (20 loc) · 870 Bytes
/
htmltable.robot
File metadata and controls
21 lines (20 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${browser} chrome
${url} https://testautomationpractice.blogspot.com/
*** Test Cases ***
Table
open browser ${url} ${browser}
maximize browser window
scroll element into view xpath://tbody/tr[7]/td[3]
${rows}= get element count xpath://table[@name='BookTable']/tbody/tr
${cols}= get element count xpath://table[@name='BookTable']/tbody/tr/th
log to console ${rows}
log to console ${cols}
table header should contain xpath://table[@name='BookTable']/tbody/tr/th[1] BookName
table row should contain xpath://table[@name='BookTable']/tbody/tr[2] 2 Learn Selenium
table column should contain xpath://table[@name='BookTable'] 2 Amit
table cell should contain xpath://table[@name='BookTable'] 2 2 Amit
sleep 5
*** Keywords ***