c

gwen.web

WebEnvContext

class WebEnvContext extends EnvContext

Manages the web context and environment bindings.

Linear Supertypes
EnvContext, TemplateSupport, DecodingSupport, ScriptSupport, SQLSupport, JsonPathSupport, XPathSupport, RegexSupport, InterpolationSupport, LazyLogging, Evaluatable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WebEnvContext
  2. EnvContext
  3. TemplateSupport
  4. DecodingSupport
  5. ScriptSupport
  6. SQLSupport
  7. JsonPathSupport
  8. XPathSupport
  9. RegexSupport
  10. InterpolationSupport
  11. LazyLogging
  12. Evaluatable
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new WebEnvContext(options: GwenOptions)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAttachment(name: String, extension: String, content: String): (String, File)
    Definition Classes
    EnvContext
  5. def addBehavior(behavior: dsl.BehaviorType.Value): dsl.BehaviorType.Value
    Definition Classes
    EnvContext
  6. def addErrorAttachments(failure: Failed): Unit

    Add a list of error attachments which includes the current screenshot and all current error attachments.

    Add a list of error attachments which includes the current screenshot and all current error attachments.

    failure

    the failed status

    Definition Classes
    WebEnvContext → EnvContext
  7. def addForeachStepDef(step: Step, stepDef: Scenario): Unit
    Definition Classes
    EnvContext
  8. def addScope(name: String): ScopedData
    Definition Classes
    EnvContext
  9. def addStepDef(stepDef: Scenario): Unit
    Definition Classes
    EnvContext
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def asString: String
    Definition Classes
    EnvContext
  12. def bindAndWait(element: String, action: String, value: String): Unit

    Binds the given element and value to a given action (element/action=value) and then waits for any bound post conditions to be satisfied.

    Binds the given element and value to a given action (element/action=value) and then waits for any bound post conditions to be satisfied.

    element

    the element to bind the value to

    action

    the action to bind the value to

    value

    the value to bind

  13. def boundAttributeOrSelection(element: String, selection: Option[String]): () ⇒ String
  14. def clone[T <: EnvContext](engine: EvalEngine[T]): T
    Definition Classes
    EnvContext
  15. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  16. def close(): Unit

    Closes the current web context.

    Closes the current web context.

    Definition Classes
    WebEnvContext → EnvContext
  17. def compare(name: String, expected: String, actual: () ⇒ String, operator: String, negate: Boolean): Unit

    Gets the actual value of an attribute and compares it with an expected value or condition.

    Gets the actual value of an attribute and compares it with an expected value or condition.

    name

    the name of the attribute being compared

    expected

    the expected value, regex, xpath, or json path

    actual

    the actual value of the element

    operator

    the comparison operator

    negate

    true to negate the result

    returns

    true if the actual value matches the expected value

  18. def compare(sourceName: String, expected: String, actual: String, operator: String, negate: Boolean): Try[Boolean]
    Definition Classes
    EnvContext
  19. def currentBehavior: Option[dsl.BehaviorType.Value]
    Definition Classes
    EnvContext
  20. def decodeBase64(source: String): String
    Definition Classes
    DecodingSupport
  21. def dsl: List[String]

    Adds web engine dsl steps to super implementation.

    Adds web engine dsl steps to super implementation. The entries returned by this method are used for tab completion in the REPL.

    Definition Classes
    WebEnvContext → EnvContext
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  24. def evaluate[U](dryValue: ⇒ U)(function: ⇒ U): U
    Definition Classes
    Evaluatable
  25. def evaluateJS(javascript: String, params: Any*): Any

    Executes a javascript expression on the current page through the web driver.

    Executes a javascript expression on the current page through the web driver.

    javascript

    the script expression to execute

    params

    optional parameters to the script

    Definition Classes
    WebEnvContext → ScriptSupport
  26. def evaluateJSPredicate(javascript: String, params: Any*): Boolean
    Definition Classes
    ScriptSupport
  27. def evaluateJsonPath(jsonpath: String, source: String): String
    Definition Classes
    JsonPathSupport
  28. def evaluateXPath(xpath: String, source: String, targetType: eval.support.XPathSupport.XMLNodeType.Value): String
    Definition Classes
    XPathSupport
  29. def executeSQLQuery(sql: String, database: String): String
    Definition Classes
    SQLSupport
  30. def executeSQLUpdate(sql: String, database: String): Int
    Definition Classes
    SQLSupport
  31. def extractByRegex(regex: String, source: String): String
    Definition Classes
    RegexSupport
  32. def filterAtts(pred: ((String, String)) ⇒ Boolean): ScopedDataStack
    Definition Classes
    EnvContext
  33. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  34. def formatJSReturn(javascript: String): String

    Appends a return keyword in front of the given javascript expression in preparation for execute-with-return (since web driver requires return prefix).

    Appends a return keyword in front of the given javascript expression in preparation for execute-with-return (since web driver requires return prefix).

    javascript

    the javascript function

    Definition Classes
    WebEnvContext → ScriptSupport
  35. def getAttribute(name: String): String

    Resolves a bound attribute value from the visible scope.

    Resolves a bound attribute value from the visible scope.

    name

    the name of the bound attribute to find

  36. def getBoundReferenceValue(name: String): String

    Gets a bound value from memory.

    Gets a bound value from memory. A search for the value is made in the following order and the first value found is returned:

    • Web element text on the current page
    • Currently active page scope
    • The top scope
    • Settings
    name

    the name of the bound value to find

    Definition Classes
    WebEnvContext → EnvContext
  37. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. def getForeachStepDef(step: Step): Option[Scenario]
    Definition Classes
    EnvContext
  39. def getLocatorBinding(element: String, optional: Boolean): Option[LocatorBinding]

    Gets a web element binding.

    Gets a web element binding.

    element

    the name of the web element

    optional

    true to return None if not found; false to throw error

  40. def getLocatorBinding(element: String): LocatorBinding

    Gets a web element binding.

    Gets a web element binding.

    element

    the name of the web element

  41. def getStepDef(expression: String): Option[(Scenario, List[(String, String)])]
    Definition Classes
    EnvContext
  42. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  43. def interpolate(step: Step): Step
    Definition Classes
    EnvContext
  44. final def interpolate(source: String)(resolve: (String) ⇒ String): String
    Definition Classes
    InterpolationSupport
  45. val isDryRun: Boolean
    Definition Classes
    EnvContext
  46. def isEvaluatingFeatureFile: Boolean
    Definition Classes
    EnvContext
  47. def isEvaluatingTopLevelStep: Boolean
    Definition Classes
    EnvContext
  48. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  49. val isParallel: Boolean
    Definition Classes
    EnvContext
  50. val isParallelFeatures: Boolean
    Definition Classes
    EnvContext
  51. var loadedMeta: List[File]
    Definition Classes
    EnvContext
  52. lazy val logger: Logger
    Attributes
    protected
    Definition Classes
    LazyLogging
    Annotations
    @transient()
  53. def matchTemplate(template: String, source: String, sourceName: String): Try[Boolean]
    Definition Classes
    TemplateSupport
  54. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  55. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  56. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  57. val options: GwenOptions
  58. def parseExpression(operator: String, expression: String): String
    Definition Classes
    EnvContext
  59. def perform(operation: ⇒ Unit): Option[Unit]
    Definition Classes
    Evaluatable
  60. def popBehavior(): Option[dsl.BehaviorType.Value]
    Definition Classes
    EnvContext
  61. def reset(level: dsl.StateLevel.Value): Unit

    Resets the current context and closes the web browser.

    Resets the current context and closes the web browser.

    Definition Classes
    WebEnvContext → EnvContext
  62. def scopes: ScopedDataStack
    Definition Classes
    EnvContext
  63. def specFile: Option[File]
    Definition Classes
    EnvContext
  64. val stateLevel: dsl.StateLevel.Value
    Definition Classes
    EnvContext
  65. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  66. def toString(): String
    Definition Classes
    AnyRef → Any
  67. def topScope: TopScope
    Definition Classes
    EnvContext
  68. def visibleScopes: ScopedDataStack
    Definition Classes
    EnvContext
  69. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  72. val webContext: WebContext

    The web context.

Inherited from EnvContext

Inherited from TemplateSupport

Inherited from DecodingSupport

Inherited from ScriptSupport

Inherited from SQLSupport

Inherited from JsonPathSupport

Inherited from XPathSupport

Inherited from RegexSupport

Inherited from InterpolationSupport

Inherited from LazyLogging

Inherited from Evaluatable

Inherited from AnyRef

Inherited from Any

Ungrouped