β New feature: Capture Screenshot and Element Screenshot using Browsing Context class in Selenium 4 #854
Labels
β goal: addition
Addition of new feature
π· status: label work required
Needs proper labelling before it can be worked on
π status: ready for dev
Ready for work
Milestone
π Description of the new feature request?
Selenium 4 has introduced Browsing Context class that provides more features such as
https://www.selenium.dev/documentation/webdriver/bidirectional/webdriver_bidi/browsing_context/#capture-screenshot
This class should be utilized in the framework that supports more features
π§ Scenario where this would be used?
This could prove useful in capturing screenshots.
π Supporting information
To use the Browsing Context class we need to set the "webSocketUrl" in the Browser Options class
For e.g
ChromeOptions options = new ChromeOptions();
options.setCapability("webSocketUrl", true);
The text was updated successfully, but these errors were encountered: