Is there a way to resize testcafe popup window? I have a test clicking on an element opens a new browser, is there a way to maximize the opened browser? .maximizeWindow() maximized the initial browser
The resizing of popup windows will be available in Chrome-based browsers in v1.10.0. Meanwhile, you can test this functionality in the release candidate (v1.10.0-rc.2).
Related
When I click on a button from desktop application, its opening chrome browser. how can I switch to desktop to webview and back to desktop application.
You do not need anything special. Just click the button as you normally do it.
The power of Sikuli is that it is not affected by underlying technology. It sees the screen and this is all.
So answer is:
click(ButtonInDesktopApp)
click(ButtonInBrowser)
We have a set of users who cannot view source or use developer tools in IE11 on Windows 10. right clicking to view source closes the browser with no errors being displayed or found in event viewer. If you hit F12 it will open briefly and then will again close the browser without errors
I am using Selenium Remote web driver to test my application in IE9 and the test is running fine in the remote machine. The only problem I am facing is, the IE 9 browser is minimized in the task bar as it opens. I need it to open so that I can see it by default. The capabilities currently set is as follows.
capabilities.setVersion("9");
capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
capabilities.setCapability(CapabilityType.LOGGING_PREFS, prefs);
capabilities.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR,UnexpectedAlertBehaviour.ACCEPT);
capabilities.setCapability("ignoreZoomSetting", true);
The code to maximize the window driver.manage().window().maximize() works fine as I can see the window maximized when I click on the IE icon in the system tray.
What am I missing to open the window?
Thanks in Advance,
DeeJay
If you have access to that PC with admin's rights:
Open window's registry, look for this key:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
And delete the key: Window_Placement
Then restart
I have created an application in selenium wherein it opens IE browser and enters user id and password by usind selenium's IE driver. However I want to prevent user from inspecting the auto data filled by selenium in the form. User can easily inspect the data using developer tools. So I want to know the way to disable developer tools options in selenium opened webpages.
Your help is highly appreciable.
Thanks.
Instantiate an instance of OpenQA.Selenium.Interactions.Actions then perform keystrokes for the F12 control. This should toggle on/off the developer tools in Chrome, IE, and Firefox.
I would also include a check to see if one of the controls from the devtools is there before toggling this, just to be sure that you don't turn them on instead of off.
c#:
OpenQA.Selenium.Interactions.Actions actions = new OpenQA.Selenium.Interactions.Actions([Instance of IWebDriver goes here]);
actions.SendKeys(OpenQA.Selenium.Keys.F12).Perform();
The application I am testing requires pop-up to be enabled. When a launch a new Firefox profile I get the browser message
Firefox prevented this site from opening a pop-up window
with a button on the right called Options. I can manually click the Options button and select to Allow popups from ....
Question is how can I use profile.setPreference to set to allow popups from my website and also not show this Firefox message?
You can save your current Firefox prifile with allowed popups and load it from file like in this case: https://stackoverflow.com/a/6830109/1165331
save you current working profile with popups via browser and loat it.