Sha256: bfc341fd3a926e7fdc92b708e6df8fe784d141f79ae73bc389f21312a8b7cfdf

Contents?: true

Size: 642 Bytes

Versions: 5

Compression:

Stored size: 642 Bytes

Contents

=begin
    Copyright 2010-2022 Ecsypno <http://www.ecsypno.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

module Arachni::Element
class DOM
module Capabilities

# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
module Locatable

    def locator
        @locator ||= Arachni::Browser::ElementLocator.from_node( node )
    end

    # Locates the element in the page.
    def locate
        locator.locate( browser )
    end

end

end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 lib/arachni/element/dom/capabilities/locatable.rb
arachni-1.6.1.2 lib/arachni/element/dom/capabilities/locatable.rb
arachni-1.6.1.1 lib/arachni/element/dom/capabilities/locatable.rb
arachni-1.6.1 lib/arachni/element/dom/capabilities/locatable.rb
arachni-1.6.0 lib/arachni/element/dom/capabilities/locatable.rb