From a358c971388592e6de6d5673db7582ca6e057da6 Mon Sep 17 00:00:00 2001 From: szTheory Date: Tue, 3 Mar 2020 16:25:28 +0000 Subject: [PATCH] README syntax highlighting, fix Documentation tag --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c178c3d..a0584d1 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,15 @@ session storage. This library has been set up as a Mix application, so just add this to mix.exs deps: - {:webdriver, github: "stuart/elixir-webdriver"} +```elixir +{:webdriver, github: "stuart/elixir-webdriver"} +``` or if you do Hex.pm: - {:webdriver, "~>0.8.0"} +```elixir +{:webdriver, "~>0.8.0"} +``` and make sure the application block of mix.exs includes: applications: [ :webdriver ] @@ -35,7 +39,9 @@ only run the appropriate ones. It uses the `:os.find_executable` function to find the appropriate paths so check that if a browser is not found. -##[Documentation](http://hexdocs.pm/webdriver) +## Documentation + +http://hexdocs.pm/webdriver ## Usage @@ -57,7 +63,9 @@ Currently the config is very simple it just consists of two or three fields: You can then start up a session on the browser with - WebDriver.start_session browser_name, session_name +```elixir +WebDriver.start_session browser_name, session_name +``` Once the session is started you can do commands on it, see the edoc documentation for more on specific commands.