How to simulate mouse click on blank area in website by Selenium IDE?

Idan E picture Idan E · Jan 15, 2015 · Viewed 31.4k times · Source

I want to perform mouse click on blank area outside a form in order to wake up the data traffic in some website by Selenium IDE. Any ideas?

I've tried to do click by x,y but it doesn't effective for my test case. The scenario is below:

  1. fill the email field
  2. click outside the form in order to make the client to send data request to the server for check if this email is already exist in the DB and then it does auto complete and enable the continue button.

Answer

Manu Singh picture Manu Singh · Feb 12, 2016

You can use the command:

driver.findElement(By.xpath("//html")).click();

But sometimes it doesnt take blank spaces,

In such cases, use:

driver.get("//html");