Unable to perform click few button inside a iframe in java selenium

50 views
Skip to first unread message

Nandha

unread,
Nov 24, 2019, 5:09:19 PM11/24/19
to seleniu...@googlegroups.com
HI All

In a page if I have 10 buttons to select in Iframe screen ( I can able to select but I can't able to select one of that.
Any Suggestions?

Ramesh T

unread,
Nov 25, 2019, 12:30:17 AM11/25/19
to seleniu...@googlegroups.com

You have to switch to that frame first then need to select the element.

 

driver.switchTo().frame(“framename”);

driver.findElement(By.Id (“id”);

 

If the above does not work. You may required to work on javascript to locate the element.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CALOw7VYbr3fdh89G6p2_-Rkeer4zvOZi03qyoJ12%3D57kL%2BYnNw%40mail.gmail.com.

 

nandha kumar

unread,
Nov 25, 2019, 1:26:55 AM11/25/19
to Ramesh T, seleniu...@googlegroups.com
Ramesh it was working fine
I switched to I frame
I have 10 buttons and 9 works good
Only 1 stopped working
Manukau I can find the values

Sent from my iPhone

> On Nov 25, 2019, at 12:30 AM, Ramesh T <ntram...@gmail.com> wrote:
>
Reply all
Reply to author
Forward
0 new messages