Hi all,
I am using Java with web driver. I have case like i have two sections
in my GUI page.The first half is to select the option we want and the
second half to give he details in the form like msisdn, uploading an
image etc.And i have recorded the test case using selenium ide.I have
got some values like
select Frame relative=up
select Frame middle Frame
so when i am using these to identify my code is not able to identify
them.
But the same with value
select Frame main Frame is working fine and i am able to navigate.But
the second case is not able to recognise it.so how can i resolve it.
driver.get("
http://172.19.1.226:9000/msdp/cpuser/indexAction.do");
driver.findElement(By.name("username")).sendKeys(username);
driver.findElement(By.name("password")).sendKeys(password);
driver.findElement(By.className("ButtNewPage")).submit();
driver.switchTo().frame("mainFrame");
driver.findElement(By.xpath("/html/body/form/table/tbody/
tr[2]/td/table/tbody/tr/td/ul/li/span")).click();
driver.findElement(By.xpath("/html/body/form/table/tbody/
tr[2]/td/table/tbody/tr/td/ul/li/ul/li[2]/a")).click();
driver.manage().timeouts().implicitlyWait(10,
TimeUnit.SECONDS);
And if i am using as
driver.switchTo().frame("relative=up");
driver.switchTo().frame("middleFrame");
These are throwing errors as unable to find the element.
So please help in resolving this.
thanks in advance
mallik