Skip to content

Commit

Permalink
Merge branch 'element-requests'
Browse files Browse the repository at this point in the history
  • Loading branch information
gedaiu committed Mar 6, 2016
2 parents b3bfb6f + 5de50b9 commit 2144a18
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.dub
docs.json
__dummy.html
*.o
*.obj

bin/Debug/selenium

dub.selections.json

dub.userprefs

selenium.dproj

selenium-d

selenium
*.DS_Store
6 changes: 3 additions & 3 deletions source/selenium.d → source/api.d
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module selenium;
module selenium.api;

import core.vararg;
import std.stdio;
Expand Down Expand Up @@ -235,7 +235,7 @@ struct LogEntry {
string message;
}

struct SeleniumSession {
struct SeleniumApi {
string serverUrl;

Capabilities desiredCapabilities;
Expand Down Expand Up @@ -393,7 +393,7 @@ struct SeleniumSession {
return this;
}

auto deleteCookie(string name) {
auto deleteCookie(string name) {
DELETE("/cookie/" ~ name);
return this;
}
Expand Down
3 changes: 3 additions & 0 deletions source/session.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module selenium.session;

import selenium.api;
4 changes: 2 additions & 2 deletions source/test.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module test;

import selenium;
import selenium.api;
import std.stdio;
import vibe.data.json;

Expand All @@ -10,7 +10,7 @@ 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/";

auto session = SeleniumSession("http://127.0.0.1:4444/wd/hub", Capabilities.chrome);
auto session = SeleniumApi("http://127.0.0.1:4444/wd/hub", Capabilities.chrome);

session.timeouts(TimeoutType.script, 10_000);
session.timeouts(TimeoutType.implicit, 10_000);
Expand Down

0 comments on commit 2144a18

Please sign in to comment.