From ceb7d78d0cbc51bc755b0aee632d20be7e44ac5b Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 12 Jul 2011 10:16:48 +0200 Subject: akephalos without javascript validation check --- toxcreate.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/toxcreate.rb b/toxcreate.rb index dbad292..14e5a4b 100644 --- a/toxcreate.rb +++ b/toxcreate.rb @@ -58,16 +58,22 @@ class ToxCreateTest < Test::Unit::TestCase end assert first(".model_status").has_content?("Completed") end - + def test_03_predict # works only with selenium - Capybara.current_driver = :selenium + Capybara.current_driver = :akephalos + Capybara.register_driver :akephalos do |app| + Capybara::Driver::Akephalos.new(app, :validate_scripts => false) + end visit CONFIG[:services]["opentox-toxcreate"] click_on "Predict" fill_in "or enter a Name, InChI, Smiles, CAS, ...", :with => "NNc1ccccc1" check "hamster_carcinogenicity" click_button "Predict" assert page.has_content? "inactive" + click_on "Confidence" + assert page.has_content? "Indicates the applicability domain of a model" click_on "Details" + #assert page.has_content? "false" #assert page.has_content? "0.294" #assert page.has_content? "0.875" -- cgit v1.2.3