Class: Watigiri::Locators::TextArea::Locator
- Inherits:
-
Watir::Locators::Element::Locator
- Object
- Watir::Locators::Element::Locator
- Watigiri::Locators::TextArea::Locator
- Includes:
- LocatorHelpers
- Defined in:
- lib/watigiri/locators/element/locator.rb
Instance Method Summary collapse
Methods included from LocatorHelpers
#fetch_value, #locate, #locate_all, #locate_element, #locate_elements, #noko_element, #nokogiri_to_selenium, #set_nokogiri, #text_regexp_deprecation
Instance Method Details
#regex? ⇒ Boolean
152 153 154 155 156 157 |
# File 'lib/watigiri/locators/element/locator.rb', line 152 def regex? return @regex unless @regex.nil? return false unless (@selector.keys & %i[adjacent visible label text visible_text visible_label]).empty? @regex = @selector.any? { |k, v| v.is_a?(Regexp) && k != :value } end |