Module: URL

Included in:
LoginPage, RandomPage, ResetPreferencesPage
Defined in:
lib/mediawiki_selenium/support/modules/url_module.rb

Overview

This file is subject to the license terms in the LICENSE file found in the mediawiki_selenium top-level directory and at git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/LICENSE. No part of mediawiki_selenium, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the LICENSE file. Copyright 2013 by the Mediawiki developers. See the CREDITS file in the mediawiki_selenium top-level directory and at git.wikimedia.org/blob/mediawiki%2Fselenium/HEAD/CREDITS.

Class Method Summary collapse

Class Method Details

.url(name) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/mediawiki_selenium/support/modules/url_module.rb', line 13

def self.url(name)
  if ENV["MEDIAWIKI_URL"]
    mediawiki_url = ENV["MEDIAWIKI_URL"]
  else
    mediawiki_url = "http://en.wikipedia.beta.wmflabs.org/wiki/"
  end
  "#{mediawiki_url}#{name}"
end