fix typo
This commit is contained in:
parent
b32fbeab84
commit
ff6b9d0d94
@ -9,7 +9,7 @@ require "./form/select_list"
|
|||||||
require "./utils/element_matcher"
|
require "./utils/element_matcher"
|
||||||
|
|
||||||
class MechanizeCr::Form
|
class MechanizeCr::Form
|
||||||
include MechanzeCr::ElementMatcher
|
include MechanizeCr::ElementMatcher
|
||||||
|
|
||||||
getter node : Node | Lexbor::Node
|
getter node : Node | Lexbor::Node
|
||||||
getter fields : Array(FormContent::Field)
|
getter fields : Array(FormContent::Field)
|
||||||
|
@ -3,7 +3,7 @@ require "./utils/element_matcher"
|
|||||||
require "./page/link"
|
require "./page/link"
|
||||||
|
|
||||||
class MechanizeCr::Page < MechanizeCr::File
|
class MechanizeCr::Page < MechanizeCr::File
|
||||||
include MechanzeCr::ElementMatcher
|
include MechanizeCr::ElementMatcher
|
||||||
delegate :css, to: parser
|
delegate :css, to: parser
|
||||||
|
|
||||||
property mech : Mechanize
|
property mech : Mechanize
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
module MechanzeCr::ElementMatcher
|
module MechanizeCr::ElementMatcher
|
||||||
macro elements_with(singular, plural = "")
|
macro elements_with(singular, plural = "")
|
||||||
{% plural = "#{singular.id}s" if plural.empty? %}
|
{% plural = "#{singular.id}s" if plural.empty? %}
|
||||||
def {{plural.id}}_with(criteria)
|
def {{plural.id}}_with(criteria)
|
||||||
|
Loading…
Reference in New Issue
Block a user