RE: Sendkeys to body within iframe WebDriver (EASY?)

Hi people, I’m new here and also new to Selenium WebDriver. I am using it to automate business tasks on eBay from Excel 2010 (VBA). I need to be able to sendkeys to the (HTML body tab) of the item description body when creating a new ebay listing…

Selenium IDE refuses to capture the xpath etc. of the body element and I’ve read it struggles with iframes…?  I was hoping someone could retrieve it for me as I have no idea what i’m doing with xpath’s etc…

Thanks in advance.


EvlAzr Default Asked on November 11, 2015 in Selenium WebDriver.
Add Comment
3 Answers


Check whether your element is inside the frame (You can Right click nearest of your element , if it contains “This Frame” then you can identify your element is present inside the Frame).

Then you have to move to that frame by using the following code.
wd.switchTo().frame(“id of the frame”);

Then only your Xpath will work.


Default Answered on November 17, 2015.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.