Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating a new tests with selenium in my job. But i can't get one element in my system. We use Prime Faces and i can't get this element. I need to send a value to him, and He is a iFrame.

I tried to use Selenium IDE but i had no success. When I try to get the xPath, i get /htm/body :( Someone know how i can get the full path of this element?

I'm using Selenium Web Driver.

Thanks in advance

share|improve this question
up vote 1 down vote accepted

after a little searching, I found this solution


WebElement editable = driver.switchTo().activeElement(); 

editable.sendKeys("Your text here"); 


worked very well

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.