testing - QTP捕获位图时错误号-2147467259

标签 testing vbscript automated-tests qtp

这个功能曾经有效,但现在我看到消息“一般运行错误”,然后:

msgbox Err.Number 
The error number is **-2147467259**

语句就像

Browser("Browser").Page("Page").Image("Image").CaptureBitmap "c:\temp\test.png",True

我不记得有任何变化,也不知道是什么导致了错误。

最佳答案

好的,我找到了解决方案。因为现在有另一个屏幕连接到电脑。 Internet Explorer 在第二个屏幕上启动,而不是主屏幕。所以这个说法不能很好的执行。我让 IE 在主屏幕中打开,问题解决了。不过奇怪的是QTP竟然能识别出webedits...

关于testing - QTP捕获位图时错误号-2147467259,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12007586/

相关文章:

ruby-on-rails - 我应该使用 def 或 test 关键字编写 Rails 测试吗?

memory-management - GetRef 的内存消耗(垃圾收集)随 KB4525236 改变

testing - Cypress 测试不打开 Powerapps 页面

r - 数据集上的cbind无效下标类型 'list'

java - 在 Selenium 中计时的最佳方式

testing - 使用 Metamask 进行测试的 Cypress 测试方法

powershell - Windows 11 级联 Windows : possible with e. g。 AutoHotkey,不适用于 VBScript 或 PowerShell

SQL:使用条件显示链接选项

android - 选择 selenium grid2 上的特定节点来运行测试

java - 使用 Maven 测试 Web 数据库应用程序