docs: public void switchToFrameAccordingToAnnotationParams(Method annotatedMethod) {
          RequireSwitchingToFrame annotation = getAnnotationData(annotatedMethod);
  
          int frameIndex = annotation.index();
          LocatorType locatorType = annotation.locatorType();
          String locatorValue = annotation.locatorValue();
          String nameOrId = annotation.frameNameOrId();
  
          if (nameOrId.length() > 0) {
              String xpathLocator = String.format("//*[@name='%1$s' or @id='%1$s']", nameOrId);
              SeleniumUtils.findElementWithTimeout(driver, By.xpath(xpathLocator), 20);
              driver.switchTo().frame(nameOrId);
          } else if (locatorType != LocatorType.NONE && locatorValue.length() > 0) {
              switchToFrameByWebElement(locatorType, locatorValue);
          } else {
              driver.switchTo().frame(frameIndex);
          }
      }