Take the 2-minute tour ×
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.

I am new to Selenium WebDriver World. I am trying to work on a script to Add a Person in PeopleSoft HCM Application. Basically, On the Personal Data Main page, you first start by adding a Effective Date in to a Date Field and click on Add Name button that opens a Sub Page on the Main page. The Sub Page has First Name , Middle Name , Last Name etc fields. You enter this fields and click OK to go back to Main Page and carry on other data entries.

When I recorded through Selenium IDE, it clicks on the Add Name Button and the sub page opens and the IDE can enter text to the name fields. However when I am using the Web Driver Code, it is not able to push the data to the sub page.

How can I get hold of the sub page through the code. I tried the driver.switchTo().window command , and this is not working.

Any Help on this would be a great help.


enter image description here


share|improve this question
It doesn't look like a new window opens, which is why, I think, the switchTo command doesn't work. Does the page use iFrames? Can you paste the HTML code here? –  Yash Jun 6 '14 at 6:31
This looks like an inline DIV that's being made visible/invisible depending on circumstances, probably with an AJAX call somewhere behind it. –  Kate Paulk Jun 6 '14 at 10:59

Your Answer


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

Browse other questions tagged or ask your own question.