org.openqa.selenium.server.browserlaunchers
Class BrowserStringParser
java.lang.Object
org.openqa.selenium.server.browserlaunchers.BrowserStringParser
public class BrowserStringParser
- extends Object
Parse a Selenium browser string to extract browserStartCommand if there is one.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserStringParser
public BrowserStringParser()
parseBrowserStartCommand
public BrowserStringParser.Result parseBrowserStartCommand(String browserIdentifier,
String userBrowserSpecification)
- Returns the browser start command, if any, for the browser in the 'browserString' parameter. If
the browserString cannot be matched to the 'knownBrowser' parameter, an illegal argument
exception is thrown.
- Parameters:
browserIdentifier
- a known browser identifier.userBrowserSpecification
- the string sent by the client to identify the type of browser
to start, e.g. *firefox
- Returns:
- Match result, never null.
Copyright © 2012. All Rights Reserved.