pyjab icon indicating copy to clipboard operation
pyjab copied to clipboard

Python implementation for Java application UI automation with Java Access Bridge

Results 14 pyjab issues
Sort by recently updated
recently updated
newest added

这几天利用假期我又来学习pyjab,发现在控件多的窗体内定位控件比较慢,特别是有table的窗体,而且table里的内容还比较多,定位得特别慢,刚才定位一个控件需要40秒钟,这貌似也太久了,后来我把xpath改成下面的全路径模式: driver.find_element_by_xpath( "//root pane/layered pane/panel[@indexinparent=0]/panel[@indexinparent=0]/panel[@indexinparent=1]/panel[@indexinparent=1]/push button[@indexinparent=6]" 以为这样把所有路径都指定好,会快一些,谁知道并没有任何改善,还是需要约40秒才能成功定位,期间我观察这段时间的cpu利用率真,会上升一些,但是cpu还是很空闲,于是我想用多线程的方法提高CPU利用率,大慨是下面的方法: from multiprocessing import Process p = Process(target=, args=("bt",)) ps_list = [] for i in range(0, cpu_logical_count): ps_list.append(Process(target=driver.find_element_by_xpath, args=(xpath,)) for p in ps_list: p.start()...

bug

https://github.com/gaozhao1989/pyjab/blob/3fe1e61f37d095b8ad5608a71d9f7a2c8b99405d/pyjab/jabelement.py#L1474 if find by from another JABElement by xpath, it should find JABElement from current node. But it find JABElement from root node.

bug

Hi, can you check what is the CPU consumption for the java application under test during execution i.e. find_element_by_name or find_element_by_xpath? Task Manager on my VM (hyper-v ws2019) shows about...

enhancement

Hi, some time ago I wrote an email to you about a specific function which I called "scroll to view". The idea is to scroll to see elements from the...

enhancement