code: protected void switchFrame(PageElement element, Object... args) throws FailureException, TechnicalException {
          try {
              Context.waitUntil(ExpectedConditions.frameToBeAvailableAndSwitchToIt(Utilities.getLocator(element, args)));
          } catch (final Exception e) {
              new Result.Failure<>(element, Messages.format(Messages.getMessage(Messages.FAIL_MESSAGE_UNABLE_TO_SWITCH_FRAME), element, element.getPage().getApplication()), true,
                      element.getPage().getCallBack());
          }
      }
docs: Switches to the given frame.
  
  @param element
  The PageElement representing a frame.
  @param args
  list of arguments to format the found selector with
  @throws TechnicalException
  is thrown if you have a technical error (format, configuration, datas, ...) in NoraUi.
  Exception with {@value com.github.noraui.utils.Messages#FAIL_MESSAGE_UNABLE_TO_SWITCH_FRAME} message (with screenshot, with exception)
  @throws FailureException
  if the scenario encounters a functional error