@override
(script, ...args)
| 817 | |
| 818 | /** @override */ |
| 819 | executeScript(script, ...args) { |
| 820 | if (typeof script === 'function') { |
| 821 | script = 'return (' + script + ').apply(null, arguments);' |
| 822 | } |
| 823 | |
| 824 | if (script && script instanceof PinnedScript) { |
| 825 | return this.execute( |
| 826 | new command.Command(command.Name.EXECUTE_SCRIPT) |
| 827 | .setParameter('script', script.executionScript()) |
| 828 | .setParameter('args', args), |
| 829 | ) |
| 830 | } |
| 831 | |
| 832 | return this.execute( |
| 833 | new command.Command(command.Name.EXECUTE_SCRIPT).setParameter('script', script).setParameter('args', args), |
| 834 | ) |
| 835 | } |
| 836 | |
| 837 | /** @override */ |
| 838 | executeAsyncScript(script, ...args) { |
no test coverage detected