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

Viewport dimensions passed to selenoid #197

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

Bojana33
Copy link

@Bojana33 Bojana33 commented Aug 7, 2024

No description provided.

@Bojana33 Bojana33 requested a review from ivnglkv August 7, 2024 12:48
Bojana Todorovic added 2 commits August 7, 2024 14:57
"""Returns visibility status of all elements in the page

Returned dictionary uses elements' jdn-hash property value as keys
"""
escaped_page_content = str(page_content).encode('utf-8').decode('unicode_escape')

driver = get_webdriver()
driver.set_window_size(viewport['width'], viewport['height'])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid window and viewport sizes are different. Viewport is just where page is rendered and window size includes toolbars/scrollbars if I'm not mistaken. I'd like to find a way to make it more precise

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean to calculate the entire window size, that will support desired size of the viewport?

@ivnglkv
Copy link
Contributor

ivnglkv commented Aug 12, 2024

Not merging until plugin adopts this API change

@Bojana33 Bojana33 merged commit 389cf15 into develop Aug 16, 2024
2 checks passed
@Bojana33 Bojana33 deleted the issue_1598-Pass-screen-resolution-to-selenoid branch August 16, 2024 12:30
@Bojana33 Bojana33 restored the issue_1598-Pass-screen-resolution-to-selenoid branch August 16, 2024 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants