开发者

Error using SelBlocks extension with Selenium server

开发者 https://www.devze.com 2023-03-27 22:09 出处:网络
I\'ve been recording/writing Selenium html scripts using the SelBlocks extension. Now we\'re going to use Selenium server to run the tests in different browsers.

I've been recording/writing Selenium html scripts using the SelBlocks extension. Now we're going to use Selenium server to run the tests in different browsers.

I tried getting the javascript from the SelBlock xpi by extracting it and reference that javascript in my selenium server bat file. When I try开发者_Go百科 to run my bat file with referencing the javascript, i got the error "Line: 777 Error: 'XML' is undefined" when I run it in Internet explorer. This happens as the test script is loaded in TestRunner.

When I try to run it in Firefox, TestRunner hangs just prior to running the script.

i'm using Selenium Server 2.1, Firefox 5 and IE8.


Selblocks is only supported for Selenium IDE. See note about "no language translation" here: Selblocks documentation. Although automated translation would be an interesting area of investigation...


I've tried the same thing (Firefox 4.0, Firefox 7.0, selenium-server-2.0.5.jar, SelBlocks 1.3 installed as a firefox plugin).

Since the -userExtensions way didn't work for me, I installed SelBlocks 1.3 in the firefox profile I use with -firefoxProfileTemplate and -htmlSuite. It looks like selenium server doesn't do anything.

After more than a minute I have:

Error using SelBlocks extension with Selenium server

so even the selenium elapsed timer doesn't tick, and no line gets executed.

My simple test case is here.

Looks like I can't use SelBlocks with selenium-server[version].jar for now?


ANNOUNCEMENT: SelBlocks 2.1 now includes support for Selenium Server. Get the extension file here: https://raw.githubusercontent.com/refactoror/SelBlocks/master/user-extensions.js

Initial browser support is for firefox, googlechrome, and opera.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号