在本文中,我们将详细介绍“站点url”中发生了错误:未捕获的TypeError:无法使用Selenium和Python读取未定义的属性“getColomnSet”的各个方面,同时,我们也将为您带来关于
在本文中,我们将详细介绍“站点url”中发生了错误:未捕获的TypeError:无法使用Selenium和Python读取未定义的属性“ getColomnSet”的各个方面,同时,我们也将为您带来关于Adobe Target:未捕获的TypeError:无法读取未定义的属性“样式”、Angular:未捕获的类型错误:无法读取未定义的属性“调用”、asp.net – 未捕获TypeError:无法读取未定义的属性“UI”、css – 未捕获的TypeError:无法读取未定义的属性’$$minErr’的有用知识。
本文目录一览:- “站点url”中发生了错误:未捕获的TypeError:无法使用Selenium和Python读取未定义的属性“ getColomnSet”
- Adobe Target:未捕获的TypeError:无法读取未定义的属性“样式”
- Angular:未捕获的类型错误:无法读取未定义的属性“调用”
- asp.net – 未捕获TypeError:无法读取未定义的属性“UI”
- css – 未捕获的TypeError:无法读取未定义的属性’$$minErr’
“站点url”中发生了错误:未捕获的TypeError:无法使用Selenium和Python读取未定义的属性“ getColomnSet”
我正在尝试将Selenium用于Python,或者Chrome网络驱动程序来自动下载文件。
我的程序可以完美运行到最后一步(单击“下载”按钮),此时将触发一个带有文本的对话框:
“在’站点URL’中发生了一个错误:未捕获的TypeError:无法读取undefined41的属性’getColomnSet’
此错误是什么意思,最可能的原因是什么?
作为参考,这是我程序的最后几个命令:
try: elem = wait.until(EC.presence_of_element_located((By.ID,''element_1_id'')))finally: elem1 = driver.find_element_by_id(''element_1_id'') elem2 = driver.find_element_by_id(''element_2_id'') action = ActionChains(driver).move_to_element(elem1).move_to_element(elem2) action.perform() elem2.click()
答案1
小编典典此错误消息…
An error has occured in ''site url'': Uncaught TypeError: Cannot read property ''getColomnSet'' of undefined
…表示您的程序在尝试 下载 所需文件时无法读取属性 getColomnSet 。 __
可能的主要问题是js
在客户端完全呈现 HTML
DOM 之前涉及到下载文档的调用。
相关的 HTML ,您之前的几 行代码 和 错误堆栈跟踪 将使我们对出了什么问题有了更多的了解。
解
- 在讨论之后,您可以采取一些措施来等待呈现完整的 DOM树 :
- 检查页面是否已完全加载到Selenium中的通用功能
- 几个事实:
- 在您的代码试用中,我没有看到您与该元素进行交互,
(By.ID,''element_1_id'')
因此可能可以删除presence_of_element_located()
该元素的步骤(By.ID,''element_1_id'')
。 - 如果仍然需要
presence_of_element_located((By.ID,''element_1_id''))
捕获异常,请启动所需的步骤。 - 当你调用
move_to_element()
了 elem1 和 elem2时 ,阔步向前调用perform()
需要引起 WebDriverWait 与expected_conditions为element_to_be_clickable(locator)
- 在您的代码试用中,我没有看到您与该元素进行交互,
tl; dr(参考)
- 未捕获的TypeError:无法读取未定义的属性’getContext’
- 未捕获的错误remote.js
Adobe Target:未捕获的TypeError:无法读取未定义的属性“样式”
如何解决Adobe Target:未捕获的TypeError:无法读取未定义的属性“样式”?
我想使用我们产品页面中的Adobe Target感染我的代码。同一产品我们有不同类型,我可以在所有产品中看到代码经验。它工作正常。问题在于我们要根据产品类型注入不同类型的体验:
在产品50/50中,我想看到蓝色字母标题,它可以工作,但是在产品40/60中,我想看到黄色,但是它不工作。它说:Uncaught TypeError:无法读取控制台中未定义的属性“ style”。一切正常,但是那样。另外,我将使用10种产品。
(function () {
var existeDOM = function () {
var MF_PRIV_01 = document.getElementsByClassName("c-step-timeline t-orange");
return MF_PRIV_01;
}
var interval;
//resto del código de la variante
var functionAnadir = function () {
//Prueba
var el = document.querySelector("#content > div > div > div.fund-contract-step-indicator > div");
el.style.backgroundColor ="red";
//POR FONDO
let [fondo5050] = [...document.querySelectorAll(''span'')].filter(item => item.textContent === ''Contratación del Fondo Cartera NaraNJA 50/50'');
fondo5050.style.color = "blue";
let [fondo4060] = [...document.querySelectorAll(''span'')].filter(item => item.textContent === ''Contratación del Fondo Cartera NaraNJA 40/60'');
fondo4060.style.color = "yellow";
//FIN
}
//Time
var renderer = function () {
if (existeDOM()) {
clearInterval(interval)
functionAnadir();
}
}
interval = setInterval(renderer,100) //CHANGEME: We check every X mileseconds if the page has been redered
}
)();
有人可以帮助我吗?谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
Angular:未捕获的类型错误:无法读取未定义的属性“调用”
将我的 Angular 版本从 9 更新到 11 对我有用。
asp.net – 未捕获TypeError:无法读取未定义的属性“UI”
Sys.Extended.UI.DropDownBehavior
解决方法
css – 未捕获的TypeError:无法读取未定义的属性’$$minErr’
Uncaught TypeError: Cannot read property '$$minerr' of undefined (anonymous function) @ angular-resource.js:8 (anonymous function) @ angular-resource.js:6
我用这个CDN
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.7/angular-resource.min.js"></script>
并听到我的Html表格
<div> <input id="email"type="email" name="email" ng-model="user.email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$" placeholder="Enter Your Email" required /> <span ng-show="myForm.email.$dirty && myForm.email.$invalid">Invalid Email address.</span> <span ng-show="myForm.email.$dirty && form.email.$error.required"> Email is required </span> </div> <div> <input type="password"ng-minlength="5" ng-maxlength="10" ng-model="loginCtrl.user.pass" name="pass" id="pass" placeholder="Enter Your Password" required /> <span ng-show="myForm.pass.$dirty && myForm.pass.$error.required">required!!!</span> <br> </div> <div align="center"> <input ng-click="myFun()"type="submit"ng-disabled="myForm.$invalid" value="Login" > </div>
解决方法
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
关于“站点url”中发生了错误:未捕获的TypeError:无法使用Selenium和Python读取未定义的属性“ getColomnSet”的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于Adobe Target:未捕获的TypeError:无法读取未定义的属性“样式”、Angular:未捕获的类型错误:无法读取未定义的属性“调用”、asp.net – 未捕获TypeError:无法读取未定义的属性“UI”、css – 未捕获的TypeError:无法读取未定义的属性’$$minErr’等相关内容,可以在本站寻找。
本文标签: