callbackHelperContainer.getOnStartContentIntentHelper();
int currentCallCount = onStartContentIntentHelper.getCallCount();
- DOMUtils.scrollNodeIntoView(getContentViewCore(), id);
+ DOMUtils.scrollNodeIntoView(getWebContents(), id);
DOMUtils.clickNode(this, getContentViewCore(), id);
onStartContentIntentHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_SECONDS,
callbackHelperContainer.getOnPageFinishedHelper();
int currentCallCount = onPageFinishedHelper.getCallCount();
- DOMUtils.scrollNodeIntoView(getContentViewCore(), id);
+ DOMUtils.scrollNodeIntoView(getWebContents(), id);
DOMUtils.clickNode(this, getContentViewCore(), id);
onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_SECONDS,