Watir cannot running correctly when executing cases: - watir

Please help to have a look for error details in below when running watir for automation test.
Details:
1> watir version : 1.9.2
2> Ruby version: 1.8.7
2017-11-14 05:51:06 ERROR [xxx] Failed to create browser object for: IE
2017-11-14 05:51:06 ERROR [xxx] WIN32OLERuntimeError
Attach
OLE error code:80004005 in HttpWatch.Controller
Failed to attach to browser. Please check that both HttpWatch entries are enabled in IE's Tools->Manage Addons window and that 'Enable third-party browser extensions' is checked under Tools->Internet Options->Advanced->Browsing
HRESULT error code:0x80020009
Exception occurred.
Note:
httpwatch was installed successfully and enabled it from manage-addon from IE.
IE version is : 9.11.9600.18697
I am confused why this happen and can reproduce 100%, and other test clients with same settings working fine.

This looks like a problem connecting to HttpWatch in IE rather than directly a Watir problem.
Please check the following:
Can you manually open HttpWatch in IE and record log files?
There should be 3 entries for HttpWatch in Tools->Manage Add-ons.
Are all 3 entries enabled?
Do you have the latest update to HttpWatch installed from
https://www.httpwatch.com/download/ ?
If you have any further questions or problems please email support#neumetrix.com
Answer from Neumetrix, the developer of HttpWatch

Related

Getting SSL error "Unsupported protocol" when running in Visual Studio

I am trying to build a Blazor application and I always get the following error :
"This site can’t provide a secure connectionlocalhost uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
Unsupported protocol
The client and server don't support a common SSL protocol version or cipher suite."
My Chrome browser is up to date. I tried with Edge but the same error !
I tried the following link, too :
https://phoenixnap.com/kb/fix-err-ssl-version-or-cipher-mismatch
Until a day all was working fine and I don't know what happened...
If I run the same application on another Windows 7 PC, it is working fine...
Can you help me, please ?
I will put here a screen capture :
Same problem for me.
Working with VS19
Tried a lot of things such as:
deleting localhost certificates,
repairing IIS Express 10,
clearing browser data and certificates cache,
deleting .vs folder,
allowing every TLS and SSL options in the browser
My .NET Core web apps are working under IE. So my guess is also that it's a Chrome update problem. But I haven't found how to fix that. :-(
Experienced the same issue. Managed to get it sorted by downloading IIScrypto and enabling the Best practices TLS and Cipher versions.
You can use firefox
Firefox: about:config "tls" > security.tls.version.min=1. Reset to 3 after completion.
Install Firefox.
Type "About:config" in the address bar and hit return.
Click "Accept the risk" and continue.
Type "tls" in the search bar and hit return.
Click the pencil icon at the far right of "security.tls.version.min" to edit the cutoff setting prevening your login, which is currently 3.
Type "1" and hit return.
I have the same problem. I work with Windows 7 Visual Studio 2019 browser chrome. The problem was solved in this way:
Open the project properties - debugging - uncheck the box "use SSL".

Excel cannot release read only when opened through harmon.ie

When opening a .xlsm file with harmon.ie (v 5.3.0.9183) from SharePoint Online, a pop up showing eventID: 300 - "We're having trouble connecting to the server. If this keeps happening, contact your help desk." is thrown and the document remains stuck in "Read Only".
Opening the file directly from the online library through a browser (Chrome, IE11 tested) does not encounter the issue.
Nothing appearing in the Event log except the application 300 above.
Events logged in the framework and harmonie .log files are:
harmonie.log - OCSAwarenessFactory - Failed to find ContactWrapper for sip
framework.log - !MESSAGE Failed to find ContactWrapper for sip
Any guidance on additional troubleshooting would be appreciated.
These message from the logs are not related to the issue. You are running a too old version. You must upgrade to our latest 6.8 version from our web site. If you are customer submit a request to support#harmon.ie (only for customers0
----- Jean

Error 500 in each xpage

I am facing a strange error in xpages. Whenever i preview any xpage in internet explorer I get error 500. I've tried this with new nsf, I created only one blank xpage with no elements and tried to preview, I got the same error.
I've also checked the "Display Xpages runtime error page" in xpages tab in Application Properties section but got the same 500 error.
(I am working on my local machine)
Url of my xpage:
http://localhost/test/testdb.nsf/testxpage.xsp
For every preview attempt log.nsf has below entry
04/17/2012 03:24:10 PM HTTP Web Server: Command Not Handled Exception [/test/testdb.nsf/testxpage.xsp] Anonymous
Below is the error on ie.
Error 500
HTTP Web Server: Command Not Handled Exception
Step 1: Go to the application properties and tick "Show standard error page"
Step 2: Make sure that your application is build (default autobuild in project is ON, but you never know)
Step 3: Try project clean
Step 4: Check the errorlog in data/domino/workspace/log
Step 5: Post your code here to have a look
Based on your description most probable reason is security: you have no right to run XPages on the server. Either sign with proper ID or manage to be in "Sign agents or XPages to run on behalf of the invoker:" field of server document (in Security tab).
Anyway, you should always look for the log mentioned by #Simon McLoughlin.
Try looking at the stack trace in C:/domino-Data-Directory/IBM_TECHNICAL_SUPPORT and the most recent xpages_...log file, generally a lot more helpful than the one line errors you get in other places
If you are working on Windows Vista/7 then for starting your Lotus Notes, right click on Lotus Notes icon and click on "Run as administrator". It works this way on my local machine. I guess this is due to UAC (User Account Control).
I guess that it is your Notes client. Then you need to check with your admin.
Some of the time, We do not have a sufficient privilege for data folder. I am also faced this issue.
Check your server port, probably it may 80. So some your application takes port 80 like face book, skype... So quit that process and try :)
Are you using Extension library in the application ?
Then you need to do a double installation, both the designer and the Client installation to be able to preview.
I'm experiencing the same issue with my server, I only did what #stwissel suggested and then restarted my server and it all worked, but in your case your running it locally try restarting you PC and hope it works.
Are you running Quicker? I found this article and thought it might help, http://www.zarazaga.net/web/z.nsf/dx/getting-error-500-on-opening-an-xpage

Internal system error when opening Lotus Notes XPages database

I have downloaded sample XPages database http://www.jmackey.net/groupwareinc/johnblog/johnblog.nsf/d6plinks/SurveyToolSample
and deployed it to server. I can open it without problem with my Lotus Notes 8.5.3, but my colleague cannot open it on his Lotus Notes 8.5.2 Standard Configuration.
He gets the following error:
**This Page Cannot Be Displayed**
Internal system error when processing the request for the page ( http://127.0.0.1/xsp/JHGNES!!Major %5CSurvey.nsf/HomePage.xsp?OpenXPage&xspRunningContext=Notes ).
Please retry this request.
Enforced by host JHGMELWEB01
If this condition persists, please contact your corporate network administrator and provide the code shown below.
Notification codes: (1, INTERNAL_ERROR, http://127.0.0.1/xsp/JHGNES!!Major %5CSurvey.nsf/HomePage.xsp?OpenXPage&xspRunningContext=Notes)
I have Recompiled all lotusScript in the database using my 8.5.3 client.
Any ideas what can be the problem?
Recompiling all Lotusscript does not re-compile XPages.
Try doing a clean of the project by opening the database in Domino Designer and then use Project - Clean in the menu. Clean removes all built code and then re-builds the code.
In your 853 Designer, try recompiling the app to support 852 as the minimum release?
Launch the Application Properties in Designer, go to the XPages tab, then under 'Minimum Supported Release' select to compile this application to run on 'Release 8.5.2'.
For the vast majority of cases, apps built or compiles on current releases will work fine on previous releases without needing to do this step. Though in some cases, changes in the new release, like a new property for example, may cause failures in previous releases. This is what I'm guessing what is happening in your case.
Thanks for your quick responses. I have done more testing after I tried suggested solutions and it seems like the problem is not in the database itself but in this colleague's PC configuration, as it works on 5 other PCs running 8.5.2 and 8.5.2FP2.
Actually when you change "Minimum supported Release" on the xpages tab of app properties it prompts you to rebuild all the code.
The problem was in the location settings of that particular machine. After we removed contents of "Proxy configuration" it worked like a charm.

Selenium not opening virtual browser window on Linux

I am using Selenium to conduct user interface tests with JUnit, in a Maven project. The project is located on a Linux box running IEs4Linux and Wine to allow us to run the tests in IE.
Right now I'm using Xming along with Putty to view the virtual browser windows, and I am able to open an IE window with the command "ie6", and I can see it functioning correctly in Xming.
When setting up the Selenium RC using the *iexplore browser mode, I get the following in the RC server window:
INFO - Command request: getNewBrowserSession[*iexplore, http://asdfasdfasdf.com:7011/, ] on session null
INFO - creating new remote session
INFO - Allocated session asdfasdfasdfasdfasdfasdfadsf for http://asdfasdfasdf.com:7011/, launching...
INFO - Launching Embedded Internet Explorer...
INFO - Launching Internet Explorer HTA...
Which is normal, except the browser never opens and the tests never run. Using *iexploreproxy or *piiexplore, I get the following error from the RC:
13:46:06.957 INFO - Got result: Failed to start new browser session: org.openqa.selenium.server.browserlaunchers.WindowsUtils$WindowsRegistryException: Problem while managing the registry, OS Version '2.6.18-164.11.1.el5', regVersion1 = null on session null
Is there any reason Selenium would fail to launch the IE window using *iexplore? I would use *firefox or *chrome but the application I am testing is only compatible with IE. Also note that these test cases run perfectly fine on my local Windows machine.
Please let me know if you need more details.
Got it working...in case anybody else attempts to use a similar configuration to mine...for whatever reason it seems you cannot start up the server with the Http.proxyName and Http.proxyPort settings when using IEs4Linux to open IE6...it will just ignore them. You have to manually open the IE6 browser and enter the proxy settings yourself (most likely localhost and 4444).
I think I'll start looking into IE7 for Linux...apparently IE6 doesn't like Selenium's use of XPaths.

Resources