|
|
|
@ -101,7 +101,7 @@ function clickFunction (fnFullName, expectedInput) { |
|
|
|
|
this.waitForElementPresent('.instance button[title="' + fnFullName + '"]') |
|
|
|
|
.perform(function (client, done) { |
|
|
|
|
client.execute(function () { |
|
|
|
|
document.querySelector('#optionViews').scrollTop = document.querySelector('#optionViews').scrollHeight |
|
|
|
|
document.querySelector('#runTabView').scrollTop = document.querySelector('#runTabView').scrollHeight |
|
|
|
|
}, [], function () { |
|
|
|
|
if (expectedInput) { |
|
|
|
|
client.setValue('#runTabView input[title="' + expectedInput.types + '"]', expectedInput.values, function () {}) |
|
|
|
@ -143,7 +143,7 @@ function getAddressAtPosition (browser, index, callback) { |
|
|
|
|
function testConstantFunction (browser, address, fnFullName, expectedInput, expectedOutput, cb) { |
|
|
|
|
browser.waitForElementPresent('.instance button[title="' + fnFullName + '"]').perform(function (client, done) { |
|
|
|
|
client.execute(function () { |
|
|
|
|
document.querySelector('#optionViews').scrollTop = document.querySelector('#optionViews').scrollHeight |
|
|
|
|
document.querySelector('#runTabView').scrollTop = document.querySelector('#runTabView').scrollHeight |
|
|
|
|
}, [], function () { |
|
|
|
|
if (expectedInput) { |
|
|
|
|
client.setValue('#runTabView input[title="' + expectedInput.types + '"]', expectedInput.values, function () {}) |
|
|
|
@ -181,7 +181,7 @@ function testFunction (fnFullName, txHash, log, expectedInput, expectedReturn, e |
|
|
|
|
this.waitForElementPresent('.instance button[title="' + fnFullName + '"]') |
|
|
|
|
.perform(function (client, done) { |
|
|
|
|
client.execute(function () { |
|
|
|
|
document.querySelector('#optionViews').scrollTop = document.querySelector('#optionViews').scrollHeight |
|
|
|
|
document.querySelector('#runTabView').scrollTop = document.querySelector('#runTabView').scrollHeight |
|
|
|
|
}, [], function () { |
|
|
|
|
if (expectedInput) { |
|
|
|
|
client.setValue('#runTabView input[title="' + expectedInput.types + '"]', expectedInput.values, function () {}) |
|
|
|
|