- madhumurundi
- Posts : 1
Join date : 2016-08-21
How to Retrive Dyanamic frameID from FrameSet
Sun Aug 21, 2016 1:00 pm
Hi Folks,
In the below code .. I need to retrieve banner316375056900 from 1st tag.
For this I wrote the code as below.
driver.switchTo().parentFrame();
driver.switchTo().frame(1);
driver.findElement(By.xpath("//input[@id='commandValue']")).sendKeys("CUSTOMER L");
While execution I'm getting the error as below:
Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"//input[@id='commandValue']"}
Can you please suggest me, which is the best way of retrieving the frame Id
Thanks
Madhu
In the below code .. I need to retrieve banner316375056900 from 1st tag.
For this I wrote the code as below.
driver.switchTo().parentFrame();
driver.switchTo().frame(1);
driver.findElement(By.xpath("//input[@id='commandValue']")).sendKeys("CUSTOMER L");
While execution I'm getting the error as below:
Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: {"method":"xpath","selector":"//input[@id='commandValue']"}
Can you please suggest me, which is the best way of retrieving the frame Id
Thanks
Madhu
Permissions in this forum:
You cannot reply to topics in this forum