Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⭐ New feature: Capture Screenshot and Element Screenshot using Browsing Context class in Selenium 4 #854

Open
mfaisalkhatri opened this issue Jul 4, 2024 · 0 comments
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

Comments

@mfaisalkhatri
Copy link
Contributor

πŸ“— Description of the new feature request?

Selenium 4 has introduced Browsing Context class that provides more features such as

  1. Capture a screenshot
  2. Capture viewport Screenshot
  3. Capture Element screenshot
    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);

@mfaisalkhatri mfaisalkhatri added ⭐ goal: addition Addition of new feature 🏁 status: ready for dev Ready for work 🏷 status: label work required Needs proper labelling before it can be worked on labels Jul 4, 2024
@WasiqB WasiqB added this to the v-1.3.0 milestone Jul 5, 2024
@WasiqB WasiqB moved this from πŸ’‘ Suggested to ⚑ Planned in πŸ₯Š Boyka-Framework Roadmap Jul 7, 2024
@WasiqB WasiqB modified the milestones: v-1.3.0, v-1.4.0 Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
Status: ⚑ Planned
Development

No branches or pull requests

2 participants