Winium.Desktop
Winium.Desktop copied to clipboard
Unable to switch frame using Winium driver.
My application is built on Microsoft CRM and we access it through Add in available in the Microsoft outlook. I have to enter details in a form which can be located inside a frame when highlighted in source code. But I am not able to switch frame using the winium driver. Below is the SOURCE CODE FOR THE FRAME :
Script 1: WebElement frame= driver.findElement(By.xpath("//iframe[@Name='contentIFrame0'][@id = 'contentIFrame0']")); driver.switchTo().frame(frame);
Error : org.openqa.selenium.NoSuchElementException: Element cannot be found (WARNING: The server did not provide any stacktrace information)
Script 2: driver.switchTo().frame("contentIFrame0");
Error: org.openqa.selenium.UnsupportedCommandException: 'css selector' is not valid or implemented searching strategy. (WARNING: The server did not provide any stacktrace information)
Please suggest how to switch the frames using winium driver.
Do we have any solution for this ?