Tag: 黑莓 10

我如何在命令行上自动运行JavaScript?

我有一个简单的JavaScript myScript.js代码如下; var printer = function(someString){ console.log(someString); } printer("This is printed on console."); 我在Windows 10上,需要能够在命令提示符下调用myScript.js ,并在不执行node myScript.js情况下执行代码。 有没有办法设置的东西,使命令提示符或PowerShell可以自动调用Nodejs或其他JavaScript引擎?

Selenium WebDriver:dragAndDrop方法在IE11和IE10中失败

我们一直在使用SauceLabs来进行我们每晚的Jenkins CItesting。 我们已经在Windows 8下运行了testing,没有任何问题。 现在我们要扩展testing并在更多的平台和浏览器上运行它们。 我们的目标是在Windows和OSX以及IE11,10和9下的最新Firefox和Chrome浏览器中运行testing。 testing是使用node.js客户端为webdriver / selenium2编写的https://github.com/admc/wd 我现在的问题是让我们的dragAndDrop方法在IE11和IE10中工作。 它在最新的Firefox和Chrome和IE9中运行良好。 代码: dragAndDrop: function (elem, x, y) { var i = 0, parent = elem.elementByXPath('..'), offsetX, offsetY, pos, offsetPos, size; offsetPos = this.getLocationInView(elem); pos = this.getLocationInView(parent); size = this.getSize(elem); offsetX = offsetPos.x – pos.x + ~~(size.width / 2); offsetY = offsetPos.y – pos.y + ~~(size.height […]

当build设blackberry10科多瓦/ phonegap项目许多文件丢失

在构buildblackberry10 cordova / phonegap项目时,许多文件不包含在构build中。 不包括一些闪屏图像和“DEFAULT_BAR_NAME.bar”文件。 但是,如果在另一个设备(台式PC)上重复相同的过程,则包含所有文件。 据我所知,两者都有相同的软件设置。 C:\Users\USER\hello>cordova emulate blackberry10 [Error: An error occurred while emulating/deploying the blackberry10 project. [BUILD] Populating application source [BUILD] Parsing config.xml [BUILD] Generating output files [WARN] Failed to find debug token. If you have an existing debug token, please copy it to %HOME%/.cordova/blackberry10debugtoken.bar. To generate a new debug token, execute […]