Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit c9fad62

Browse files
heathkitjuliemr
authored andcommitted
tests(element): We can now pass elements to executeScript. (#3844)
1 parent 2e6c1be commit c9fad62

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: spec/basic/elements_spec.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,10 @@ describe('ElementFinder', function() {
173173
});
174174
});
175175

176-
it('should be usable in WebDriver functions via getWebElement', function() {
177-
// TODO(juliemr): should be able to do this without the getWebElement call
176+
it('should be usable in WebDriver functions', function() {
178177
browser.get('index.html#/form');
179178
var greeting = element(by.binding('greeting'));
180-
browser.executeScript(
181-
'arguments[0].scrollIntoView', greeting.getWebElement());
179+
browser.executeScript('arguments[0].scrollIntoView', greeting);
182180
});
183181

184182
it('should allow null as success handler', function() {

0 commit comments

Comments
 (0)