I am new to parasoft and trying to test some web UI functionality. I have used chrome to record the web session and it is working fine when run with chrome. But now I want to test the same on Firefox, but I am not getting any option to make it run on firefox. It always opens in chrome only.
So please, if anyone is aware of changing the browser preference to playback would be appreciated.
as the test case is bit big, I don't want to re-record using Firefox.
Thanks.
To change browser which you want to use during test, you should go to Test Configuration and select appropriate test configuration used to execute test.
Then in Execution view select browser which you want to use.Other option is to use built test configuration with selected browser already.
Related
I am trying to automate a website using cypress and I came across a problem where in I have to handle below tag. On click, new window gets opened which gets displayed out of the test runner.
a href="javascript:ContextTradeMenuPopup('View/Edit Trade')">View/Edit
Trade /a
I understand Cypress does not support multi window but as a workaround I can get the href tag and copy the URL and can open the URL in same runner, but in the above example there is no URL.
Can anyone help with different ways available in Cypress to handle multi window/ multiple tab behavior.
Thanks!
The work around you mentioned is currently the only work around that is available. So you should retrieve the URL of the new window/tab and visit that directly. If you can't do that you sadly can't automate it.
How to use VBScript to implement the following:
Open web browser
Load a URL in web browser after opening
List item
Click buttons in the loaded browser
Is this possible using VBScript. Any examples of code to help get me started would be beneficial. Also, my web browser is Chrome.
There is a Selenium webdriver created that works with VB.NET, VBA, and VBScript. Download and install the exe.
There are also lots of example scripts that show loading different browser types or in your case Chrome. Once loaded you just need to program what elements to navigate and click after loading your specific URL.
There might be other ways to launch and run commands against the web browser using VBScript. This is just one way.
SeleniumBasic v2.0.9.0 created by Florent Breheret and open source via git hub.
A Selenium based browser automation framework for VB.Net, Visual Basic Applications and VBScript
Script Example:
Set driver = CreateObject("Selenium.ChromeDriver")
driver.Start
WScript.Echo "Click OK to quit"
driver.Quit
Here is the official SELENIUM page: selenium main page
UPDATE:
Here is a second option that is based on the same concept , but implemented a little different. I am not sure it meets your needs , but thought I would include it as another example.
VBS WebDriver
Examples using the VBS WebDriver which is intended to provide a simple binding for Selenium 2. The bindings include the full functionality of Selenium 2 (WebDriver).
If you press F12 in Internet Explorer you can lie about what browser you are using. Use the compatibility tab (a downward direction play icon) and enter your UA string for a browser they support.
See https://msdn.microsoft.com/en-us/library/ms537503(v=vs.85).aspx
I am using Selenium IDE to test some behavior in my FireFox SDK Add-On. For example, I load a page and determine that the content script is executing at intended. In my plugin, I use simple-prefs to set some user defined preferences.
For example, I would like to load a page and then ensure that if a preference is changed, that the content script received the update and made the necessary changes to the page based on the new setting.
when I try to navigate with Selenium-IDE to the plugin configuration page chrome://mozapps/content/extensions/extensions.xul?type=extensions / about:addons. I am able to use Selenium to select an entry (<richlistitem />), but I cannot click any of the buttons within the entry because they are not part of the XUL dom. I have tried using Selenium to send enter, tab, clicks, double clicks to the appropriate <richlistitem /> but there is no way of interacting with the "inner part" of the item.
I have also tried going down the path of using selenium to modify entries via about:config, however, the area with all of the entires is just an XUL <treechildren /> and you have no way of targeting individual entries.
Is there a convenient way to change addon setting as part of an automated workflow with selenium-ide?
It seems you should use Selenium Web driver , by driver you can set preference
I am using Watir-Webdriver with Firefox profiles and I hit a bit of a snag. I am trying to figure out I may change various profile settings on the browser without closing and reopening it. I can find all the settings in about:config but I can seem to get Watir to navigate in there correctly to set the items I want. Alternatively, I cannot find any documentation about reloading profiles with new configuration values while the browser is still running.
So my question is, how may one easily navigate the about:config page itself to change configuration settings, or reload a profile object while the browser is still running.
Alternatively the settings I am looking for can also be found in the options GUI, but I don't think Watir can manipulate that.
Any help or tips will be appreciated.
Edit:: On a side note, if anyone sees this... is it possible to pull the current proxy ip that is used in the browser object returned from Watir::Browser.new
IMHO, you can modify configuration settings, but you CANNOT load different profile without restarting the browser. This is something you can't do even manually.
Personally, I created a profile configuration once (manually), that is dedicated to tests and then I use it as it is.
Is it possible through a plugin or setting or something to allow Firefox to recognize the live DOM source code?
Basically, firebug or other similar tools can recognize elements on the page which Firefox does not.
I understand with these extensions I have the ability to see such changes made by javascript, but Firefox does not seem to fully recognize them.
I'll try to clarify.
If I load a page and view source (ctrl-U), I see what the server sent to Firefox, and what Firefox ostensibly recognizes as the source code of the page. If in that source code, there is javascript which alters the DOM, and then I hit (ctrl-U) again, the code is not updated.
I am using a testing tool (iMacros firefox plugin) to automate functionality, but it does not recognize the updated DOM because Firefox does not. Firebug and similar tools can recognize these "live" updates. Does that help?
http://www.chapter31.com/2006/12/04/viewing-ajax-generated-source-code/
You can try using the web-developer extension with a view-generated-source option.
I'm still not sure I understand your question, but I think what you're getting at is the Web Developer extension for FireFox, specifically its "View Generated Source" feature.
That will let you see the altered DOM.
Firebug gives u this ability:
for instance check the HTML tab when running a jquery ticker and see the dynamic changes live in the DOM
Usually, when I have weird issues with either the console or the DOM inspector with firebug, I find restarting the browser and validating your code is the way forward.
That said, I'm not really following your question, the document that firebug shows is the same one in the firefox window...?
It looks like the problem is not that you want firefox to show the current DOM when you hit CTRL+U, but that you want some automated testing tool to be able to test your web pages.
Perhaps you should use a testing tool that is suited to the job of testing rich web applications, Selenium, for example, can do this.