Test run fails because functions are not found

Oxygen errors out when using getCaps(). Given the following test:

web.init();
web.getCaps();
web.open(‘https://www.google.com’);
web.click(‘input[aria-label=“Search”]’);
web.type(‘input[aria-label=“Search”]’, ‘car’);
web.pause(2000);
web.findElement(‘button[aria-label=“Google Search”]’);

The following log is produced:

Test finished with error: [SCRIPT_ERROR] web.getCaps is not a function at line 2

I’m using ChromeDriver 77.0.3865.40 and geckodriver 0.24.0 with Oxygen version 0.51.2. (Previously edited from original issue found when using older Oxygen version)

Just realized getCaps() has changed to getCapabilities().

1 Like