code: def push_target_elem(self, element, pseudo=None):
          
          actions = self.state[self.state['current_step']]['actions']
          if len(actions) > 0 and actions[-1][0] == 'target':
              actions.pop()
          actions.append(('target', Target(element.etree_element,
                                           pseudo, element.parent.etree_element
                                           )))
docs: Place target element onto action stack.