Maximize method is not working for safari browser - selenium-webdriver

I have been using
driver.manage().window().maximize();
for maximizing the window browser. It works fine with other browsers i.e IE,Chrome,FireFox.
I have installed safari on my windows machine and trying to automate my application on safari.But Its not working with safari.

You can use Glims add on for maximizing safari(MAC OS). Look at the link : Maximize safari browser

Related

Angularjs application fails to load UI properly on a chrome 76 launched by chromedriver 75 and above

Open Angularjs application on chrome with chromedriver through selenium. Try to click on the buttons it moves constantly up and down, which makes it impossible to click and selenium fails to click as the application is bouncing on the screen.
However, tried to replicate the same with a chrome browser manually launched it never happens.
Open the browser through chrome driver and launch the angularjs application manually UI keeps bouncing.
This means the issue happens only with a browser launched by chrome driver.
Tried with older chromedriver and chrome, this doesn't happen. Happens only with later releases of chromedriver i.e. 76 and above.
Angularjs version 1.7.2
Local chrome does work properly.
I used basic way of initiating the chrome with the below code, still no luck
var driver = new ChromeDriver();
Since the chrome browser behave differently only when launched through chromedriver, also since launching local chrome doesn't have an issue. I tried to launch the chrome as it would launch manually.
var options = new ChromeOptions() { AcceptInsecureCertificates = true };
options.AddArguments($"user-data-dir=/Users/{Environment.UserName}/AppData/Local/Google/Chrome/User Data");
var driver = new ChromeDriver(options);
The approach of using local profile user data does help to a certain extent when running on local machines, but when running on a remote machine it fails again and also you can't launch two browsers as the user data folder is used by one browser at a time, not feasible to have only one chrome browser and not multi threadable.
The latest chromedriver version 76 is w3c complaint so its better to use later versions than using older chromedriver.
Any suggestions or insights on why this happens only with chrome launched by chromedriver. will be well appreciated and also happens only with angular application.

in Ipad history.replace() results in error only in production

In react/iPad do we have limitation regarding the history.replace() function ? As during testing history.replace() function is not working only in iPads the same works fine in Android mobiles and tablets.
Is there any limitation or so either in React BrowserRoutes or iPad browsing history.?
Seems like issue wasn't with the history.replace() rather using localStorage in incognito window in safari browser on mobile and tablet devices. Guess this is specific to Safari browser versions too

Why Fullstory library makes scroll slower on Chrome browser?

We use the Fullstory (www.fullstory.com) library to track the usage of our product, but we have problems on Chrome browser : when we scroll on desktop or mobile, it's 2 or 3 times slower than on other browers (for instance Safari or Firefox).
Is it a Chrome API problem (onScroll ? ) or a Fullstory bug ? We use AngularJS as front-end framework, maybe this is an AngularJS <> Fullstory bug ?

Silverlight iframe issue with google chrome - works in Firefox & IE

I have an application, built in silverlight that I am calling via an iframe.
In IE, firefox the applications buttons work but in google chrome they do not..
I am pulling my hair out and am thinking that it is a bug in Google Chrome.
Does anyone have any ideas/suggestions?
URL: http://gotek.dev.pixel-geeks.co.uk/
Click on the "Click here to try our panel live!" button to see the issue.
It is a Chrome bug that Google has previously fixed but has risen again.
There are reports that it only affects if app running in windowless mode.

How to detect when Mobile Safari is closed?

$(window).bind('beforeunload',function(){
alert('closing');
})
Above code only seems to work for desktop browsers.
You can do alerts on unload, but mobile safari doesn't seem to have beforeunload.

Resources