I am trying to access the Iframe from the CKeditor implemented in our application. Using selenium based Javascript testing. I am able to detect the iframe. But, not able to find the contents or HTML tags in iframe.
I am using the following code to test the iframe using class and based on title in the iframe. I am checking is it the right frame I am targeting.
const visibleIframe = driver.wait(
until.elementLocated(By.className('classTest')),
TEST_TIMEOUT
);
return visibleIframe.getAttribute('title');
Now, I want to get into Iframe to test the contents in the "body" tag. I need to add text or contents into it using sendkeys and get the content for testing.