我可以从Linux控制台强制刷新Firefox页面

编程入门 行业动态 更新时间:2024-10-15 00:23:54
本文介绍了我可以从Linux控制台强制刷新Firefox页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

这是此问题的Linux版本.有没有人有办法从命令行在Firefox上强制刷新页面?

This is the Linux version of this question. Does anyone have a method for forcing a page refresh on firefox from the command-line?

推荐答案

您可以使用xdotool进行自动化.在Ubuntu上安装

You can use xdotool for automation. Install on Ubuntu with

sudo aptitude install xdotool

然后,您可以搜索窗口并发送键或鼠标事件,有关完整文档,请参见man xdotool.在开发过程中,我在Ubuntu 10.04 LTS上使用了以下脚本:

Then you can search for windows and send keys or mouse events, see man xdotool for the full documentation. I use following script on Ubuntu 10.04 LTS during development:

WID=`xdotool search --name "Mozilla Firefox" | head -1` xdotool windowactivate $WID xdotool key F5

另请参见 xdotool项目站点 和我的完整博客文章.

更多推荐

我可以从Linux控制台强制刷新Firefox页面

本文发布于:2023-10-31 13:48:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1546269.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制台   页面   Linux   Firefox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!