Skip to content

Commit

Permalink
Fixed broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Szabo Bogdan committed Aug 12, 2016
1 parent 26b1444 commit 69fa63b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions source/api.d
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,8 @@ private Json makeRequest(T)(HTTPMethod method, string path, T data) {
}
);

writeln("RESULT: ", result);

return result;
}

Expand Down Expand Up @@ -867,5 +869,6 @@ private Json makeRequest(HTTPMethod method, string path) {
}
);

writeln("RESULT: ", result);
return result;
}
11 changes: 6 additions & 5 deletions source/test.d
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import vibe.data.json;

import std.datetime;

unittest {/+
auto url1 = "http://www.amazon.com/All-Light-We-Cannot-See/dp/1476746583/";
auto url2 = "http://www.amazon.com/The-Boys-Boat-Americans-Olympics/dp/0143125478/";
unittest {
auto url1 = "https://www.amazon.com/All-Light-We-Cannot-See/dp/1476746583/";
auto url2 = "https://www.amazon.com/The-Boys-Boat-Americans-Olympics/dp/0143125478/";

auto session = new SeleniumApi("http://127.0.0.1:4444/wd/hub", Capabilities.chrome);
auto connector = new SeleniumApiConnector("http://127.0.0.1:4444/wd/hub", Capabilities.chrome);
auto session = connector.api;

session.timeouts(TimeoutType.script, 10_000);
session.timeouts(TimeoutType.implicit, 10_000);
Expand Down Expand Up @@ -183,5 +184,5 @@ unittest {/+

//session.applicationCacheStatus();

session.disconnect;+/
connector.connection.disconnect;
}

0 comments on commit 69fa63b

Please sign in to comment.