如何使用 Selenium 单击 Chrome 扩展程序按钮 [英] How to click on a Chrome extension button with Selenium

查看:104
本文介绍了如何使用 Selenium 单击 Chrome 扩展程序按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有办法在不使用 win32api 的情况下使用 Selenium 单击扩展按钮.这是图片,黑色圆圈中是我想点击的扩展图标.



该图标位于工具栏中,所以我不知道是否有使用 Selenium 查找它的方法.

I'm wondering if there is a way to click on an extension button with Selenium without using win32api. Here's the image, in the black circle is the extension icon which I'd want to click.



That icon is located in the toolbar, so I don' know if there's a way to look for it with Selenium.

推荐答案

不,Selenium 无法实现.实现您想要做的事情的唯一方法是使用任何实际直接在您使用的操作系统中运行的自动化工具.

No, It is not possible with Selenium. The only way to achieve what you want to do is to use any automation tool that actually runs directly in the OS that you use.

这篇关于如何使用 Selenium 单击 Chrome 扩展程序按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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