I am writing a method that simplifies reading the code and can’t do it in any way so that it is universal
public class Pages { public void searchByText(String text) { $(byText(text)); } }
pages.searchByText("Текст"); But I want to make it so that you can work with the methods of the selenide itself through your method
THOSE. like this> pages.searchByText("Текст").shouldBe(visible);