open |
/jquery-handsontable/index.html |
|
pause |
100 |
|
waitForElementPresent |
//div[@id="example4grid"]//tbody/tr[2]/td[5] |
|
runScript |
window.handsonDeleteRow = function() { var table = $("#example4grid"); var selected = table.handsontable('getSelected'); if (selected) { table.handsontable('alter', 'remove_row', selected[0]); } } |
|
assertEval |
typeof window.handsonDeleteRow |
function |
runScript |
$('#example4grid').handsontable("loadData", [ ["1", "100", "x", "-", "<a href='#' onclick='handsonDeleteRow();return false;'>Delete</a>"], ["2", "20", "y", "-", "<a href='#' onclick='handsonDeleteRow();return false;'>Delete</a>"], ], true); |
|
pause |
100 |
|
fireEvent |
//div[@id="example4grid"]//tbody/tr[2]/td[5]/a |
mousedown |
mouseDown |
//div[@id="example4grid"]//tbody/tr[2]/td[5]/a |
|
mouseUp |
//div[@id="example4grid"]//tbody/tr[2]/td[5]/a |
|
fireEvent |
//div[@id="example4grid"]//tbody/tr[2]/td[5]/a |
click |
pause |
100 |
|
verifyElementNotPresent |
//div[@id="example4grid"]//tbody/tr[2]/td[5]/a |
|
pause |
100 |
|
controlKeyDown |
|
|
keyDown |
//div[@id="example4grid"]//*[@class="handsontableInput"][1] |
\90 |
keyUp |
//div[@id="example4grid"]//*[@class="handsontableInput"][1] |
\90 |
controlKeyUp |
|
|
pause |
100 |
|
verifyElementPresent |
//div[@id="example4grid"]//tbody/tr[2]/td[5]/a |
|