New Selenium IDE switch to iframe using frame id

对着背影说爱祢 提交于 2020-01-25 08:05:14

问题


I am trying to select an element which is inside Iframe in selenium ide but selenium IDE not able to identify element.

open | https://verify-taxcerts.floridarevenue.com
pause | | 30000
select frame | id=ivuFrm_page0ivu3
select frame | id=isolatedWorkArea
click | OFFM.SellerVerView.TaxTypeDDKey
type | somename

This is how i am doing it in java not sure how to do it in selenium ide.Below code is working fine

    WebDriver driver = new FirefoxDriver();
    driver.manage().window().maximize();
    driver.get("https://verify-taxcerts.floridarevenue.com");
    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

    driver.switchTo().frame(driver.findElement(By.id("ivuFrm_page0ivu3")));
    // one more iframe
    driver.switchTo().frame(driver.findElement(By.id("isolatedWorkArea")));
    driver.findElement(By.id("OFFM.SellerVerView.TaxTypeDDKey")).click();

Incase if i want to use index=x in selenium ide how do i find exact iframe index of ivuFrm_page0ivu3 and isolatedWorkArea .

What is right way to select iframe using frame id in selenium ide

Thanks

来源:https://stackoverflow.com/questions/58650887/new-selenium-ide-switch-to-iframe-using-frame-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!