Use either the window name or window handle . The target of fb window
seems wrong . Also is the window of FB a resulting action of the web
On Jan 18, 10:54 am, "ravindra.k" <
ravi....@gmail.com> wrote:
> Hi All,
>
> Have a look at the code below :
>
> for (String handle : driver.getWindowHandles()) {
> driver.switchTo().window(handle);
>
> }
>
> Using the above code, I am able to switch to next browser window and able
> to do some operations.
>
> But the following code:
>
> //String fbpath ="Log In | Facebook"; // Using Title of FB login window
> String fbpath ="_blank"; // Using Target of FB login window
>