0% found this document useful (0 votes)
8 views1 page

Handling Nested Frames in Selenium

The document contains Java code that launches a ChromeDriver, navigates to a nested frames page, switches to the top and middle frames, and prints the text from an element within the middle frame.

Uploaded by

SuprinAhluwalia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Handling Nested Frames in Selenium

The document contains Java code that launches a ChromeDriver, navigates to a nested frames page, switches to the top and middle frames, and prints the text from an element within the middle frame.

Uploaded by

SuprinAhluwalia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

import [Link].

Iterator;

import [Link];

import [Link];

import [Link];

import [Link];

import [Link];

import [Link];

public class A2 {

public static void main(String[] args) {

// TODO Auto-generated method stub

[Link]("[Link]", "C://work//[Link]");

WebDriver driver=new ChromeDriver();

[Link]("[Link]

[Link]([Link]("Nested Frames")).click();

[Link]().frame("frame-top");

[Link]().frame("frame-middle");

[Link]([Link]([Link]("content")).getText());

You might also like