I'm running some tests in Watir/Cucumber (Ruby) and when the test executes and the browser window opens the text size causes the page to only take up about 1/4 of browser window. This only happens with Firefox and when I'm displaying through my laptop which is a MBP with retina display; not my secondary monitor.
Any advice would be awesome!
use this code to maximize firefox , won't maximize chrome though
page.driver.browser.manage.window.maximize
hope this will work for you.
Will help you
#browser.window.maximize
Related
On my Dell Latitude 3120 2-in-1 laptop Firefox blurs the webpage (and sometimes destroys the site layout doing so) for a few seconds when I press Esc three times in a row and
closes the current tab and replaces it with a tab in my default search engine when I press Esc four times in a row.
Has anyone an idea on why this happens?
By the way: it happens both on Windows and on Linux, both with the standard installation of Firefox. On Firefox-built-in sites it doesn't work.
Ok, I found the problem myself - it was a privacy function of the "Startpage.com" extension I had installed. It blurs the page so you can minimize the window and nothing important can be seen in the preview and one Esc click more it and closes the current tab and opens Startpage.com's search engine.
How I found out? I uninstalled the extension because it didn't really help me and I was decluttering my browser and suddenly the behaviour stopped.
And it didn't work on Firefox-built-in sites because extensions don't work on such sites.
My job is working on a website using Forefox, that website will promt a pop-up every 1 minute to give me a code. When the pop-up window appears, it'll display on top of all other windows and steals the focus. It's so annoying.
When i'm writing Word/Excel it causes mistyping, and that pop-up will minimize some full-screen application like Video Player/Games.
I've tried:
-Set working windows always on top - when i work with 5-10 programs a time it will be more annoyed.
-Change dom.disable_window_flip and browser.tabs.loadDivertedInBackground - NOT working.
I'm not sure if this problem come from Firefox or Windows's default setting for a new window pop-up.
Could anyone give me a solution for this case?
Thanks in advance
[![enter image description here][1]][1]When I launch a test case in Chrome headless it fails because it can't find a button, but when I launch it in Chrome visible it succeeds. Why?
Try to take a screenshot and validate, that the element you want to click is visible. Perhaps your screen is with to small size.
Because Chrome headless doesn't perform integrated authentication. At least by default.
I'm experiencing an annoying issue while running my behat selenium tests on my mac, El capitan.
I have a test that opens a modal that will hang if the chrome window is behind another window. As soon as I click on the chrome window to bring it to the front, the test continues and passes.
The modal uses a css transition to show. If I remove the transition, the test passes. If I keep a portion of the browser visible, the test passes.
I'm unsure if this is mac doing some kind of performance optimization or chrome. Anyone know of a way I can disable this? I'd rather not have to disable css transitions or run chrome headless.
Here I found a good article and it helped me to find some flags for Chromium:
--disable-renderer-backgrounding — Prevent renderer process backgrounding when set.
--disable-background-timer-throttling — Disable task throttling of timer tasks from background pages.
--disable-backgrounding-occluded-windows — Disable backgrounding renders for occluded windows. Done for tests to avoid nondeterministic behavior.
These flags really fixed the problem for me.
Some time ago I found mentioned and tried these flags --disable-gpu --disable-d3d11.
But they did not help.
More described flags can be found here.
I am trying to figure out how to make the browser to cover both displays (on a dual-screen setup, with same resolution on both screens) on Fullscreen mode under MS Windows.
I have checked the developer tools, but that only emulates the display.
Some MS Windows utilities do offer this feature but it doesn't work for Google Chrome browser. And also its not fullscreen mode.
If there isn't any chrome-extension available, can you point out if this is possible through writing a chrome-extension ?
Any pointers are more than welcome.
Cheers,
I got this working using nVidia desktop mosaic feature.
Still looking for driver independent solution.
Move your windows to the left screen and place your mouse cursor on the left end of the window and press + hold and pull to stretch it, that would extend to the next screen as well and it would stay until u close the windows.
Note : you would need to perform this for every windows and application individually.