While trying to automate the creation of a new application form in Salesforce Lightning, I encountered an issue when switching into the iframe:
In the node_modules\selenium-webdriver\lib\webdriver.js file at line 182, I received the following error: RangeError: Maximum call stack size exceeded. Exception in PromiseRejectCallback: \node_modules\selenium-webdriver\lib\webdriver.js:189 value.then(toWireValue).then(setValue, reject);
iframe:ElementFinder=element(by.xpath("//div[contains(@class, 'iframe-
parent')]//iframe"));
async fillPersonalInformation() {
browser.ignoreSynchronization = true;
browser.switchTo().frame(this.iframe);
await this.firstName.sendKeys("hii");
}