Question: I have created the wordpress folder inside the root. Now I wanna to set it main domain.
for example. my site url is <http://www.example.com>
 wordpress url is <http://www.example.com/wordpress>

Now I wanna set wordpress as site url , it open with the main url

when I enter the <http://www.example.com> then it show me the wordrpess site that I have created, Please let me know how I can do it?

Answer: 
The problem is not that the elements have the same name, but rather that they are identical (even their parents have the same ID).

I would definitely bring this up with the developers of the site (the fact that two elements have the same ID...which is a big no-no on websites).

Regardless, you can do `driver.findElements(By.name("content")).get(N)` to get the Nth Iframe, and then switch to it.
In this kind of case Xpath is a bast way to find an element. You can differentiate both element by their Xpath.