Coder Social home page Coder Social logo

Comments (9)

lanwen avatar lanwen commented on June 6, 2024

You could try novnc with different settings and say what combination of settings is good for you. You can connect to vnc via novnc with pwd selenoid, and path /vnc/<session-id> on selenoid directly

from selenoid-ui.

emukhin avatar emukhin commented on June 6, 2024

I'm not sure what you are trying to say. I'm pointing out to not efficient viewport distribution. Cannot come up with reasons why don't you show a browser in full width.

from selenoid-ui.

lanwen avatar lanwen commented on June 6, 2024

UI simply does nothing with browser width and viewport distribution. By default - xfvb screen greater than browser window, so some black space for UI - still the screen of your session (red arrows) - and can't be distinguished from browser window. We use NOVNC under the hood which has some options to crop the viewport. You can try this options in the original novnc client.

Also, you can try to tune xfvb in the container or the browser resolution with screenResolution capability.

For now, UI just tries to fit the whole vnc screen in external viewport by longest side (You can see div elements edges in inspector). Personally, I don't think scrolls is a good idea in vnc.

from selenoid-ui.

lanwen avatar lanwen commented on June 6, 2024

So the proposal is to fit by width and align to center if width lesser than external viewport.

Ok, accepted, will think on how to do it

from selenoid-ui.

baranoff-ivan avatar baranoff-ivan commented on June 6, 2024

If #97 is a duplicate, then this is not improvement. It is a bug. Because maximization feature does not work.

from selenoid-ui.

aemelyan avatar aemelyan commented on June 6, 2024

Hi, @lanwen @vania-pooh! Do we have any solutions for this? Still have error "Canvas not supported." and can't maximize window (Firefox 56, Chrome 64)

from selenoid-ui.

vania-pooh avatar vania-pooh commented on June 6, 2024

@aemelyan maximizing browser windows inside containers is not supported because of missing window manager. As a workaround you are expected to use something like this in your tests:

driver.manage().window().setSize(new Dimension(1920, 1080)); // Java code

This issue is about Selenoid UI layout.

from selenoid-ui.

aemelyan avatar aemelyan commented on June 6, 2024

@vania-pooh thank you for a quick answer! I believe that my issue a little bit different. I don't use maximizing during test run, instead i set size to browser directly as you show. But when i open VNC on selenoid UI and try to open fullscreen mode, canvas element size is only 1120x630 instead of expected 1920x1080. Here is html - <canvas width="1920" height="1080" style="width: 1120px; height: 630px; cursor: default;">Canvas not supported.</canvas>. I use Chrome 64 that should support canvas. I believe that my issue similar to #97. Any thoughts?

from selenoid-ui.

lanwen avatar lanwen commented on June 6, 2024

All the drawings are made by js, you won't see anything in html. Issue should be fixed with some tune of novnc

from selenoid-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.