Module: Marta::BlackMagic

Includes:
OptionsAndPaths, SimpleElementFinder, XPath
Included in:
SmartPage
Defined in:
lib/marta/black_magic.rb

Overview

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

Defined Under Namespace

Classes: MagicFinder