模拟点击Gmail进行质量检查 [英] Emulate a click on Gmail for QA

查看:164
本文介绍了模拟点击Gmail进行质量检查的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为伪造一些质量检查程序编写一些脚本。但是,我在模拟Gmail中的点击时遇到了一些麻烦。

I'm writing some scripts with Fake for some QA routines. However, I'm having some trouble with emulating the a click in Gmail.

基本思路是使用激活链接激活帐户。所以我很抱歉QA例程现在。

The basic idea is to activating an account with an activation link. So I'm pretty stuck with the QA routine right now.

我认为Javascript可以是一个有用的想法。任何想法? Gmail的DOM是ID地狱。

I thought Javascript can be a useful idea. Any ideas on that? Gmail's DOM is ID hell.

任何想法?谢谢!

推荐答案

有很多方法可以模拟点击元素,例如使用jquery
$('#your_element_id')。trigger('click')会在dom元素上触发点击事件

There are many ways to simulate click on an element, e.g., using jquery $('#your_element_id').trigger('click') will trigger click event on dom element

这篇关于模拟点击Gmail进行质量检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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