您好,我正在使用selenium webdriver在webdriver屏幕上的确定时刻获取光标在X,Y坐标中的位置。我正在尝试一个通过使用diver.execute_script()实现的方法,但我在实现时遇到了一些问题。
我正在注入以下站点中描述的脚本:
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.common
我有一个有角的数字格式。
我需要将光标定位在执行插入或删除数字的位置。
目前,在插入或删除光标后,光标将被追加到最后(我不需要这种行为,我希望光标停留在那里)
// This runs when we update the text field
ngModelCtrl.$parsers.push(function(viewValue) {
return viewValue.replace(/,/g, '');
})
我的工作代码是,请随时从分叉