Try this & let me know if it doesn't work for you.
driver.switchTo().frame(driver.findElement(
By.xpath("//iframe[contains(@tabindex,'1') and contains(@frameborder,'0')]"))); //Switching to iframe
driver.findElement(By.xpath("//body[@role='textbox']")).sendKeys("XXXXXXXXXX"); //Typing text into Email body
driver.switchTo().defaultContent(); //switching back out from iframeThanks,
Srikanth
--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/ny3Q517RXrM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/52037e48-ce45-4b02-bf39-3a8556a0eb68%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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/CACTtaW%3DroBm0uTYv9qRZ1U7gKineRA-GcDPJU1XDa7b1kMyXPg%40mail.gmail.com.