module Marta::BlackMagic
Black magic is responsible for lost element searching
When it is impossible to find element as is we have a special algorithm. It is suggesting that one part of xpath (tag or attribute) is wrong. So it is checking all the possible combination of xpath with excluding of each xpath part one by one. When there is no success it is trying without two parts It repeats everything until it finds something or number of variants is becoming larger than tolerancy value
Private Instance Methods
marta_magic_finder(meth, name = "unknown")
click to toggle source
Marta
can find something when data is incorrect (by Black magick)
# File lib/marta/black_magic.rb, line 211 def marta_magic_finder(meth, name = "unknown") finder = MagicFinder.new(meth, tolerancy_value, name, self) finder.find end