Module 40 - handling different windows | Selenium Forum
M
Posted on 05/04/2016
Hi,

I am working on module 40 with the example carwale.com. I am practicing the class parallely.

Unfortunately this site has been changed and we got the popup for location when the page is loaded. Can you please help me how to handle this pop up so that I can move to newcars and usedcars tab on the left hand corner. I am not able to find the xpath for the LOCATION pop up.

M
Replied on 05/04/2016

i used this and it worked

[code:1zbksiou]WebDriver driver = new FirefoxDriver();
driver.get("http://www.carwale.com/");
driver.findElement(By.id("placesQuery")).click();
driver.findElement(By.id("placesQuery")).sendKeys("place");
[/code:1zbksiou]


M
Replied on 05/04/2016

Thanks Ashish. I was trying with xpath only.