clicknium / clicknium-docs Goto Github PK
View Code? Open in Web Editor NEWA next-generation GUI automation framework for Web and Desktop Application Testing and Automation.
Home Page: https://www.clicknium.com
License: Apache License 2.0
A next-generation GUI automation framework for Web and Desktop Application Testing and Automation.
Home Page: https://www.clicknium.com
License: Apache License 2.0
我发现不同电脑录制器录制同一个软件,会出现不同参数,无法准备适配所有电脑(都是windonws),网上找不到更多的信息,不会使用了
I have tried to automate the YouTube using clicknium but I am not able to click on the upload button i tired multiple times but not working as expected. also, every time it was saying the clicknium started to be debugging the browser but in the video that was not showing anything I have tried with this also no proper documentation and no customer support properly please someone help me with this.
Attached the code for reference :
from clicknium import clicknium as cc,locator,ui
from time import sleep
tab = cc.chrome.open("https://www.youtube.com")
sleep(8)
cc.find_element(locator.youtube.yt_icon_button_button).click(mouse_button = "left") #tried with just click() also
print("done 1")
sleep(5)
print("DOne 3")
cc.find_element(locator.youtube.link_style_scope_ytd_compact_link_renderer).click(mouse_button = "left")
print("done 2")
sleep(5)
tab.close()
If anyone was aware of this, please tell us or if there is any mistake in this code, please let us know
i use clicknium for windows desktop software called wxworklocal, like QQ. When working with the password, i found it can not input the correct password, It always miss one letter, i thought it's because my password has symbol "+" in it. But when i input password manually, it's correct.
How can i fix this bug? I've looking for the document but found nothing
运行环境
问题描述
在 VS Code中通过 Ctrl+Shift+P 快捷键,输入 Clicknium: Sample 得到了 sample.py 文件,按 F5 运行脚本出现如下报错。
错误信息
c:; cd 'c:\wxApplets\demo'; & 'C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\python.exe' 'c:\wxApplets\vscode\vsExtensions\ms-python.python-2023.4.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher' '61024' '--' 'C:\wxApplets\demo\sample.py' python\debugpy\ada Traceback (most recent call last): File "C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "c:\wxApplets\vscode\vsExtensions\ms-python.python-2023.4.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy\__main__.py", line 39, in <module> cli.main() File "c:\wxApplets\vscode\vsExtensions\ms-python.python-2023.4.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 430, in main run() File "c:\wxApplets\vscode\vsExtensions\ms-python.python-2023.4.1\pythonFiles\lib\python\debugpy\adapter/../..\debugpy\launcher/../..\debugpy/..\debugpy\server\cli.py", line 284, in run_file runpy.run_path(target, run_name="__main__") File "c:\wxApplets\vscode\vsExtensions\ms-python.python-2023.4.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 321, in run_path return _run_module_code(code, init_globals, run_name, File "c:\wxApplets\vscode\vsExtensions\ms-python.python-2023.4.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 135, in _run_module_code _run_code(code, mod_globals, init_globals, File "c:\wxApplets\vscode\vsExtensions\ms-python.python-2023.4.1\pythonFiles\lib\python\debugpy\_vendored\pydevd\_pydevd_bundle\pydevd_runpy.py", line 124, in _run_code exec(code, run_globals) File "C:\wxApplets\demo\sample.py", line 3, in <module> from clicknium import clicknium as cc, locator, ui File "C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\lib\site-packages\clicknium\__init__.py", line 5, in <module> from clicknium.core.models.web.webdriver import WebDriver File "C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\lib\site-packages\clicknium\core\models\web\webdriver.py", line 1, in <module> from clicknium.core.models.web.basewebdriver import BaseWebDriver File "C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\lib\site-packages\clicknium\core\models\web\basewebdriver.py", line 4, in <module> from clicknium.core.models.web.browser import Browser File "C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\lib\site-packages\clicknium\core\models\web\browser.py", line 2, in <module> from clicknium.core.models.web.browsertab import BrowserTab File "C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\lib\site-packages\clicknium\core\models\web\browsertab.py", line 6, in <module> from clicknium.core.models.uielement import UiElement File "C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\lib\site-packages\clicknium\core\models\uielement.py", line 13, in <module> from clicknium.core.service.invokerservice import _ConvertBaseTypeService, _ConvertOptionService, _ExceptionHandle import clr File "C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\lib\site-packages\clr.py", line 6, in <module> load() File "C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\lib\site-packages\pythonnet\__init__.py", line 143, in load if func(b"") != 0: File "C:\Users\飞鱼2\AppData\Local\Programs\Python\Python38\lib\site-packages\clr_loader\types.py", line 64, in __call__ return self._callable(ffi.cast("void*", buf_arr), len(buf_arr))RuntimeError: cannot call null pointer pointer from cdata 'int(*)(void *, int)'
In docs "How to Deliver Executable File/Script" Clicknium Project Package and PyInstaller are used.
I wrote a simple Clicknium script that downloads icons from Iconify. Here's the script:
from time import sleep
from clicknium import clicknium as cc, locator
def main():
tab = cc.firefox.open("https://icon-sets.iconify.design/fluent-mdl2/")
sleep(2)
icons = cc.find_elements(locator.iconify.icon_sets.iconify_icon_selector)
for icon in icons:
icon.click()
downloadBtn = cc.find_element(locator.iconify.icon_sets.download_svg_icon)
downloadBtn.click()
if __name__ == "__main__":
main()
It's working great, but I'd like to really turbocharge the process as much as possible. A few questions:
Any help greatly appreciated.
When clicknium is used to automatically log in to the website,how to get the login cookie value
thanks
你好 怎么执行JavaScript脚本,为什么没有示例,调用 execute_js方法执行一直是不成功的
When the program runs some ui(locator.xxx.button_xx).click() operations, there will be a period of freeze time, and it will continue to run after about 10 seconds without interrupting the program or reporting an error. What is the reason. I use Validate to find this stuck control, and I can find it. Is it because the previous operation of the stuck operation closed a window, do you need to switch windows? When the window is closed, the window for the next operation to be found is at the top.
I tried to add a delay of 1 second per step, but it still doesn't work
Windows 11
Python 3.11.2
Clicknium 0.1.14
Greetings.
Thank you for this awesome package.
But i can't find docs for Win applications, especially for manipulating multiple applications with same name.
Is it possible? If yes - could you show some example or doc?
Hello,
I'm using the clicknium in some of my projects and I have found something disturbing there. To show this I have prepared some simple script like below:
from clicknium import clicknium as cc
from time import sleep
if not cc.edge.extension.is_installed():
cc.edge.extension.install_or_update()
while True:
cc.edge.browsers
sleep(0.2)
Running this script will increase memory usage continuously.
Same if I will use script below:
from clicknium import clicknium as cc
if not cc.edge.extension.is_installed():
cc.edge.extension.install_or_update()
cc_browsers = cc.edge.browsers
while True:
for browser in cc_browsers:
for tab in browser.tabs:
print(tab.title)
Could you give me any update about this?
Have a nice day!
运行环境
问题描述
是否能够使自动化在后台运行,目前运行后,点击其他窗口,会一直弹回到Edge浏览器,影响其他工作进行。
I can make the same object click through locators>actions>click but it gives this error when trying to use tab.find_element(locator.chrome.button_solve_the_challenge).click() Maybe is it because it opens a captcha pop-up and can't see it?
vmlogin browser can install clicknium extension, but how clicknium work with vmlogin browser by python code ?
I would like to ask some questions about the tool.
When selecting the element, a ".locator" folder is generated in the root folder of the project, knowing that if I wanted to move this ".locator" folder to another location, for example: C:\Users\user \Documents\ .locator . Where in the code can I configure this?
I'm asking this because I built the project to run in a python environment, whenever I run it in that environment it gives an error and when I run it locally it works, this with the folder that is at the root of the project.
So I would like to know how can I do this folder configuration?
I'm waiting for an answer. Thank you very much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.