[英]give javascript commands using firebug
I have a page with a list of items and a pagination link: 我有一个页面,其中包含项目列表和分页链接:
<a class="paginationNext" href="JavaScript:updFormSubmit('OffSet=2','ZSearchForm')" style="">NEXT</a>
I need to jump to page 50 (offset=50), however by clicking on the link I can only advance page by page. 我需要跳到第50页(偏移量= 50),但是通过单击链接,我只能逐页前进。
Is there any way I can use firebug's console to 'simulate' a click on 有什么方法可以使用Firebug的控制台“模拟”点击
<a class="paginationNext" href="JavaScript:updFormSubmit('OffSet=50','ZSearchForm')" style="">NEXT</a>
I think you should try the selenium Add-on for Firefox. 我认为您应该尝试Firefox的硒插件。 It allows you to record, edit, and debug tests automatically.
它允许您自动记录,编辑和调试测试。 Selenium can simulate all kind of user interaction.
硒可以模拟所有类型的用户交互。
You can just execute the updFormSubmit('OffSet=50','ZSearchForm')
in the console. 您可以只在
updFormSubmit('OffSet=50','ZSearchForm')
执行updFormSubmit('OffSet=50','ZSearchForm')
。 ( and click the run
button if you have multiline mode on ) ( 如果启用了多行模式,则单击
run
按钮 )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.