Class ByDeepShadow

java.lang.Object
com.codeborne.selenide.selector.ByDeepShadow

public class ByDeepShadow extends Object
  • Constructor Details

    • ByDeepShadow

      public ByDeepShadow()
  • Method Details

    • cssSelector

      public static org.openqa.selenium.By cssSelector(String target)
      Find target elements. It pierces Shadow DOM roots without knowing the path through nested shadow roots.


      For example: #shadow-host #inner-shadow-host target-element

      Parameters:
      target - CSS expression of target element
      Returns:
      A By which locates elements by CSS inside DOM with shadow-roots.