selenium - Unsupported command dragAndDrop with switch to ruby - ruby

I have a nice test suite in the selenium IDE using the HTML format.
I wish to change that to ruby.
I try the format change to ruby/rspec but I get
# ERROR: Caught exception [ERROR: Unsupported command [dragAndDrop | xpath=
(//div[#id='external-events']/div[contains(text(),'My Event 1')]) | 300,150]]
Any way to get around this and avoid the error? Do other Ruby formats get around this?
I also dried dragdrop but got the same error.

A lot of the IDE functions are unable to be converted directly into the language of your choice. DragAndDrop is one of them, I don't think it's implemented for any of the exports.
You'll have to use the ActionBuilder:
http://selenium.googlecode.com/svn/trunk/docs/api/rb/Selenium/WebDriver/ActionBuilder.html

Related

Xzing recognizes Barcode only in Java version

I'm trying to bulk scan some jpg files with barcodes on them. I've used the ruby bindings for the c++ port of xzing. When I have this file:
scanned by the Web-Version of Xzing (https://zxing.org/w/decode.jspx) everything turns out fine. When I try to scan this one in ruby (using https://github.com/glassechidna/zxing_cpp.rb) nothing is recognized. I already tried cranking up the contrast, but it did not help. It's not my ruby setup because it works for loads of other nearly identical codes. The only thing I can think of is any difference between the Java version and the C++ port, but this is absolute poking in the dark, I've started using zxing just today.
Could anyone get this code recognized in ruby? Thank you very much.
The gem you're using and/or it's dependencies our out of date. If you want to still use Ruby for your project, you can try using one of the online services in the comments for the decoding. You could either try to use the
mechanize gem or roll your own using other http ruby tools such as httparty or Ruby's Net::HTTP

is there way to debug or capture javascript errors in wkhtmltopdf?

The scenario is easy - I create PDFs with wkhhtmltopdf, and sometimes I struggle with things like
window.performance
not supported by this version.
So scripts are not fully executed.
Until now my way to find errors like that, was to use the very old Windows Safari browser, that helped me finding these errors.
But now I have a script error with the old wkhtmtlopdf, that does not even show in windows Safari.
I found it (or not really) with heavy and nasty script changing (comment out the half), but I would like to know if there is a way to get the correct error with wkhtmtlopdf while parsing.
Run wkhhtmltopdf with the command line using --debug-javascript argument.

IntelliJ shows warnings in Vagrantfile when using ruby plugin for syntax highlighting

in order to have nice syntax highlighting for Vagrantfiles I installed the ruby plugin for Intellij IDEA.
Unfortunately, now I get a lot of warnings, like
"Cannot find Vagrant"
"Cannot find configure"
"Cannot find vm"
Any clue how to get rid of those messages, and mabye even better get a real check in order to support writing correct Vagrantfiles?
Thx!

WebStorm and PHP syntax highlighting in WebStorm

I have WebStorm and really like it. I don't use PHP very often, but I'm working on a project that uses it...
So, I'm trying to get basic syntax highlighting in WebStorm.
I've tried using this plugin already (incompatible):
http://plugins.jetbrains.com/plugin/6610
And I've followed the steps in these threads:
Webstorm: how to extend to handle PHP files or even just higlight code correctly?
Is it possible to get Ruby syntax highlighting in PHPStorm?
I am using this textmate bundle:
https://github.com/textmate/php.tmbundle
It's being recognized by WebStorm, and the proper files are being associated with TextMate bundles, yet I still have no syntax highlighting.
At this point, I've just written all the stuff without the highlighting, but it seems a bit ridicules that I cannot get it to work.
I sent an email to technical support, and they just pointed me back to those resources and then suggested that I buy PHPStorm. And the IDE keeps suggesting that I buy IntelliJ IDEA Ultimate.
Has anybody else run into this problem?
https://github.com/textmate/php.tmbundle bundle uses non-documented 'injection' - feature that's not currently supported - thus no highlighting is actually recognized. See RUBY-14273

Erlang Common Test syntax highlighting on the console?

Is there a way to get syntax hightlighting on the test results that Common Test prints to the console? I am coming from a Ruby background and I like the way Rspec highlights failed and successful messages differently. Is there an option for this in CT?
Thanks in advance!
Are you using rebar ct to run your suites? I wrote a replacement: https://github.com/rlipscombe/topcat
It has syntax highlighting, to a point. You might find it useful; you might not.

Resources