Winium.Desktop icon indicating copy to clipboard operation
Winium.Desktop copied to clipboard

Unable to switch frame using Winium driver.

Open nikita1307 opened this issue 5 years ago • 1 comments

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.

nikita1307 avatar Oct 31 '18 10:10 nikita1307

Do we have any solution for this ?

anjali-kondapalli avatar Mar 13 '19 09:03 anjali-kondapalli