如何通过硒IDE来模拟空白区域单击鼠标在网站? [英] How to simulate mouse click on blank area in website by Selenium IDE?

查看:162
本文介绍了如何通过硒IDE来模拟空白区域单击鼠标在网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想,以唤醒在一些网站硒IDE数据流量形式之外执行的空白区域单击鼠标。
任何想法?

我试图通过做X,Y单击但它并不适合我的测试用例。
该方案是如下:


  1. 填写电子邮件字段

  2. 单击表格之外,以使客户端数据请求发送到服务器进行检查,如果该电子邮件已经在数据库中存在,那么它自动完成并启用继续按钮。


解决方案

您可以使用命令:

  driver.findElement(By.xpath(// HTML))点击()。

但有时它并不需要空格,

在这种情况下,使用:

  driver.get(// HTML);

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.

解决方案

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");

这篇关于如何通过硒IDE来模拟空白区域单击鼠标在网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆