How to disable Firefox pop up blocker via CentOS 7 terminal - firefox

Running selenium tests on a CentOS 7 minimal VM. Need to disable Firfox popup blocker. Don't have UI, need to find a way to disable using the terminal.
Any commands available for that?

What you could do is set the default preferences for the profile you use to run your test instance of Firefox.
The preference which controls the popup blocker behavior is dom.disable_open_during_load. Simply add the following entry to your prefs.js file:
user_pref("dom.disable_open_during_load", true);

Related

Unable to recognize any objects in Chrome browser

Unable to recognize objects on Chrome browser via UFT 14.02
I am using Chrome 56.0.2924.87 and UFT 14.02
I have installed HPE Functional Testing Agent along with agent crx file item.
The Chrome browser is zoomed to 100%.
Using Object Spy, I am unable to recognize any object in the entire page. Every time, I try to hover over or click, it shows me as:
WinObject: Chrome Legacy Window
Also, If I try to click on record by going to "Record & Run settings → Open the following when recording or running".
I am getting the following error, though:
Unable to Launch browser. The specified browser is not installed
I have followed the following steps to solve my problem:
Set the system display settings to "100%" and resolution "2560 X 1440". Once this done, log out and log in back for the changes to take effect
Zoom the Chrome browser to "100%".
Drag and drop Agent.crx from the Installation/Chrome folder to browser to install the Extension.
Launch UFT and then launch Chrome browser. Use Object Spy, you can now see that objects are being identified.
I had the same problem. UFT had already installed the Agent Extension, but it was disabled. Enabled it from Extensions page. Worked fine.
Check if your Chrome is having the HPE Functional testing Agent through Options → MoreTools → Extensions.
And Enable if it is already installed and in Disable Mode
Open chrome://flags.
Search for "Touch events API" and set it to "Enabled"
Search for "User Activation V2" and set it to "Enabled"
Click the restart chrome prompt.

the terminal emulator configuration in the UFT

I have a problem because I have been sharing try to get a solution.
I'm trying to configure the Terminal Emulator on HP-UFT, but unfortunately do not know even begin.
I would want to install something before the UFT configuration?
Thank you.
You need to first create a new GUI test. If you don't, the Terminal Emulator option will not be displayed.
Launch UFT 11.5x or 12.00
Select Terminal Emulator from the addins window
Once UFT is loaded, select File>>New>>Test
Select GUI Test
Click Create button. Wait for new test to appear.
Click Tools>>Options>>GUI Test
On the left hand side, you should see Termial Emulator under Windows Applications
Click Terminal Emulator and configure as needed.
You will get more details if you'll simply search terminal emulator configuration in the UFT on google.

Why can't I launch the Java SSH Client from the AWS Management Console?

In the AWS Management Console, I select an EC2 instance and then I click "Connect" from the Instance Actions menu. I see the following popup window:
Instead of the fields I should normally see, I get the above message about enabling java in my browser. But java is enabled in my browser. I tested it with this page to confirm. I'm running Java SE 6 Update 24.
I'm using Google Chrome v20.0 on Linux Mint 13 64bit. I also tried with Firefox and the result is the same. I can access Java SSH Client without any problem from my Windows box, so it may be a Linux-specific issue.
Use Firefox or safari, it works fine.
Refer to the link below for more information.
Chrome browser versions 42 and above. Starting with Chrome version 42 (released April 2015), Chrome has disabled the standard way in which browsers support plugins.
https://java.com/en/download/help/browser_activate_plugin.xml
Try option 1, a stand alone ssh and then open terminal use the chmod command to change the permissions then ssh -i.... command(Example is given in the Launch instance box on AWS).
After doing this you will see bitmap on your terminal, that means you are in.
Then use cd apps/parse/htdocs. This will take you to htdocs where most parse server files are stored. Then use vi filename.js which opens a tex editor to edit the file you want.
Hope that was useful.
Try with java 32 bit version.. most browsers don't support 64 bit java..

Can I emulate previous versions of Firefox within Firefox 4.0?

The Developer Tools in IE 8 (and 9) allow switching Document and Browser Modes to previous versions. Is that possible with Firefox 4?
No it is not possible. It is possible to change the User-Agent string using the Add-on User Agent Switcher, but it does not change the behavior of the Javascript engine.
Having two Firefox versions installed at a time is possible. Just choose a different installation folder. When running Firefox, use different profiles and pass the --no-remote option to prevent a new window being opened with the active Firefox application.
For example, you can create the profile "firefox36" and "firefox4" and run these using:
"%ProgramFiles%\Firefox 4\firefox.exe" --no-remote -P firefox4
"%ProgramFiles%\Firefox 3.6\firefox.exe" --no-remote -P firefox36

How do I disable images and Flash from loading when using Selenium with Firefox?

When running selenium tests through Selenium RC in Firefox 3, the instance of Firefox that launches to run the tests in always displays images even though I've setup Firefox 3 to not display images.
Do anyone know how to disable the images from loading?
I'd also like to disable flash from loading on the test pages as well.
When you launch selenium RC from the command line, you can provide the command line arguement of -firefoxProfileTemplate , where dir is the location of the Firefox profile you wish to use. Example:
java -jar selenium-server.jar -firefoxProfileTemplate "C:\Documents and Settings\YOUR_USERNAME\Application Data\Mozilla\Firefox\Profiles\gj4zmzhp.default"
You can then configure the Firefox profile your using anyway you see fit. To disable flash, you can go to the tools->Add-ons in Firefox and then in the Plugins tab, disable the Shockwave Flash plugin.

Resources