is there sth like profile for firefoxDriver in InternetExplorerDriver in WebDriver? - profile

how can i start the IE with some special plugins?
just like u customize a special profile for firefox in webDriver.
is there something like that?
or maybe there's another way to accomplish that.
thx.

IE doesn't support profiles; any changes such as plugins are global to the user's account. Additionally, since plugins are registry-based, and the settings are stored in HKEY_LOCAL_MACHINE, they require elevation to administrative privileges to install and configure. These two factors make it impossible to have WebDriver install or configure plugins at runtime. You'll have to manually install the plugin manually before launching your tests.

Related

Firefox configuration via CLI

During system setup and later for automatic testing (whether specific configuration settings are still effective) I am interested in configuring Firefox via CLI. I have seen one or the other command line tool but they would always cover only one aspect of Firefox and are usually bound to a specific version.
To be more clear about this, let me list some of the use cases for the CLI:
create/remove profiles
install/update/remove plugins
list installed plugins incl version
list configuration settings, get/set values (also for plugins)
clear cache/cookies/...
manage truststore
manage bookmarks
Is there no command line interface officially supported?
Firefox command line interface is indeed officially supported, but at this moment in time is under documented. While it's possible to find some outdated documentation, the in-tree documentation is only a stub.
Since you mentioned automated testing, you might also consider the approach currently being used by Mozilla to run tests on Firefox:
Generate a profile to be used for testing.
Tweak the preferences in the profile (e.g. using user.js).
Start Firefox using the generated profile (either using -p or --profile).
Execute your tests (with Geckodriver?).

UFT 14.52 spying Java object but not adding it

Am since long trying to add objects from a Java based application in UFT 14.52 but not able to.
Made sure that all hooks are added to env vars. UFT is behaving weird ie it spies the object correctly, but the moment I try adding it doesn't. In some circumstances, it does add it but then again doesn't highlight it. Even though when I try adding the same, it adds exactly the same object but again doesn't highlights.
I have tried
. Reinstalling UFT
. Reinstalling java 1.8 (202)
. Enabling and disabling plugins
. Installed UFT with admin privileges
( In all the cases, am launching UFT first)
. Deleting and resetting java env vars
The machine am on has security policies in place and I can not do much modification to system or registry except the user ones.
Am able to add Windows, wpf or web objects. It is the java am having issues with.
Any help or insight Will be helpful.
Good night.
Make sure that
Your system display setting are set to 100%
and
your browser zoom % set to 100%
I see similar problem with Java application and after setting both setting it worked like charm.

Test with older versions of Firefox

I had a situation where a user saw an error on her browser which is Firefox. It might be an older version. Is there a way to test multiple versions of Firefox without downloading a bunch of them?
You can use Utili Mozilla Firefox collection if you want to test your site in different versions of Firefox. It's really convenient - a lot of versions in one pack.
http://utilu.com/UtiluMFC/
(I'm not associated with this company)
cheers
I have a folder /browsers with custom versions of browsers, e.g. firefox, chrome, opera.
Then launch the different version when you need to test a specific version rather than launching the default one from your Applications.
*e.g. just rename the installed .app.
Chromium.app rename to e.g. Chromium_19.app need to disable auto-updates
Firefox.app rename to Firefox_38.app
firefox releases
Chrome releases
Opera releases
Multi Safari
Yes you can do this. I have gone through multiple links to find its solution. For example you want to install firefox 4.0 but want to keep 3.6 as well then you need to install Firefox 4.0 using the Custom Installation option, in a uniquely named folder — like /Program Files/Firefox 4.0/ — don't let 4.0 run after the installation procedure is complete.
Create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
Helpful links will be link1 and link2.
During the search I have also found one software utilu that may be useful, but clearly speaking I have not tried that yet, will try later.
there sites like these http://browsershots.org/. They let you test browsers without downloading.
If you're on OSX using Homebrew, you can install via brew cask:
brew tap goldcaddy77/firefox
brew cask install firefox-46
More info can be found at the git repo homebrew-firefox

Add on builder helper could not be installed because firefox cannot modify the needed file

I am trying to run the sample program for add-on Firefox.
from https://builder.addons.mozilla.org/package/xxxxxx/latest
When I try to do the "Test"
Its asking me to download:
=
Install Add-on Builder Helper
To test this add-on, please install the Add-on Builder Helper add-on
When I try to install I am getting the following error:
add on builder helper could not be installed because firefox cannot modify the needed file
can you please let me know how to resolve this.
I googled it but could not the solution form my case.
I found during my saerach that some said "please change the length of the package" I have no idea how to do that
You need to run the installation for Add-On Builder Helper as administrator. Windows 7 is more restrictive with rights to the Program Files folder than previous versions of Windows; non-administrator users don't have write access to that folder tree.
It might be this:
https://wiki.mozilla.org/Jetpack/Release_Notes/1.0#Known_Issues
The first known issue there highlights a weakness on Windows where very long path names prevent installation. Unsure how long the path to your profile is. See this Mozilla support article for more info on profile directory locations:
http://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data?s=location+of+profile&r=1&as=s

is user-extension must for selenium RC?

I have created a project in Eclipse for Selenium automation using testNG framework. I have never used any user extension file in the past, but I heard that we need to use an user extension file. As since I am unsure of the proper use of this file I have never used it and my project runs smoothly. The question now arises is that later on will I have any issues because of not using an user-extension file? Please give me some ideas on the user extension file and let me know whether its mandatory to use in selenium RC project.
thanks in advance
No, the user-extensions.js file is not required. But you may indeed need to use it, if your existing tests depend on an extension that is in it. Obviously, at that point you need to use the version of the file that the test author used.
I am not quite sure what your question is but I think the answer is No anyway, you do not need to have any "user extension files" in order to use selenium API in any JAVA testing environment. You just call API from your testNG or other testing frameworks. see http://release.seleniumhq.org/selenium-remote-control/1.0-beta-2/doc/java/

Resources