Skip to content
Advertisement

Tag: selenide

How to write in pre tag?

I can’t write value to field using Selenium .sendKeys. So I use jsCode: and I can’t understand why these methods don’t work – the test passes but the value is not written to the field $(“div pre”).append(“RESPONSE”) – work in devTools Full html code: Answer If you are trying to append to the content of the pre tag then use

How can i set browser language in Selenide using Java?

Hello guys please how can i do it?When i run not headless mode browser is in english and everything works fine, but when i run headless mode language is changed to my native language. I am using this for headless mode. Answer Selenide Configuration class contains public static MutableCapabilities browserCapabilities which used within the driver startup if provided. For Chrome:

Advertisement