TFS and clicking hyperlinks - coded-ui-tests

I have some buttons in my web (javascript based) application. And I can record consecutive steps which I use these button in. The problem appears when I want to click a hyperlink. TFS doesn't recognize it - everything seems to be fine while recording a step, but later in tests it points my hyperlink with the mouse cursor, but nothing happens (no click executed).
In HTML it looks like:
Link 1
[edit]
I have noticed that the problem appears in Chrome, but in IE10 is OK...

You need to be using TFS 2012 update 2 or higher for this to work in Chrome.

Related

Userform toolbox additional controls dialogue window not showing

While using MS Excel (Outlook, Word, or Power Point as well apparently) I create a userform. The toolbox shows up showing controls tab and 16 icons representing various controls. When I right click in some empty space in the tool box control area, a menu comes up listing "additional controls" at the top and two greyed out options below it. When I select "additional controls" a spinning blue circle appears briefly then disappears and nothing happens.
It is my understanding that a dialogue box should open at this point and I should be able to select some additional controls.
I noticed the problem while trying to follow a video on how to data scrape for my personal project which I asked for help here.
What I have tried
Creating a user form on another computer and then importing it to this one. No success.
Repairing MS Excel. This resulted in a full reinstall I believe as I had to re enter my product key. No success.
Resetting various registry keys as mentioned in this article. No success.
KB 369383 as mention as part of the process above. No success.
Issue described here but no solution, just a work around to something to what the person was trying to add.
Setting MS Excel to run in compatibility mode. There was no compatibility mode listed as an option under properties for the desktop icon.
Running as administrator even though my Windows account has admin rights. No change.
Cleaning the registry with both ccleaner and wise registry cleaner.
Running Excel in safe mode using excel.exe /s. Confirmed with (safe mode) in the title bar. No success.
My System
Windows 10
MS Office Professional 2013 - 32
(Note, no crystal reports added that I am aware of)
Additional Info
I tried another Windows 10 machine running same version of MS Office and it worked there, so it should not solely be a Windows 10 issue. My machine was an upgrade from Windows 7 - 64. The other machine was an upgrade from windows 8.
I created a new Windows user account and the dialogue box comes up for that account. At least now we know that its SOMETHING to do with my user account/profile.
I found a solution to 'my' problem after spending 2-3 nights over this. It turned out to be a very simple and not-so-intuitive fix.
My problem was that when I right-click on the Toolbox, I do not even get to see the "Additional Control" option in the menu.
Click on the userform, so that its selected.
Now go to Tools and Additional Controls is no longer greyed out. :)
Make sure the the Toolbox window is selected first then click on the Tools menu and Additional Controls should then be visible
In my case it was the toolbox that needed to be selected and not the userform.
When toolbox is selected, bam! the "Additional Controls" is no longer greyed out.

Can not edit code in xpages or custom control

I have a problem with Domino Designer since the problem occurs not only in existing xpage and databases, it also happens in newly created databasen and xpages as well as custom controls.
The problem is that when I try to open an xpage or custom control, I will not se any code, or anything but an emppty blank page under the toolbars.
First I thought it could be my screen, then I thought it could be an configuration problem so I reconfigured the notes client and tried again, then I check if I could open the custom controls with the xml editor instead of the xsp editor, and that worked, but I want the xsp editor back.
What is this, a blank page, it seems that it could not render properly, because if I use my keyboard and pressing the space bar, then it ask me if I want to save the changes when closing the custom control by the esc.
Do I have to re-install the client? Or does it exist any configurations for the xsp editor I miss?
BTW, It happens the other day, and when I re-configured my installation it worked, but this time it does not.
Are you looking at the design pane and not the source pane? At the bottom of the blank page, above the properties area there are two tabs, click on the "source" tab.
If that's not the issue, I'm not sure what's going wrong
I did not have time to investigate any further, it must have been the render function of the XSP Editor that was corrupt, stopped working and I re-installed the Notes and Designer and then I could continue working. No problems in my code. :-)

Visual Studio: CTRL-TAB doesn't always work

This post originally related to "Visual Studio", but affects other similar applications.
There are a number of posts dealing with a problem where the tab navigation panel appears but requires a click etc to dismiss. These seem to be solved by fiddling with the magnifyer, narrator etc. None of these solutions apply to my problem - which is that, in VS2012, ctrl-tab brings up the two-column navigation panel, repeated presses of tab moves through the lists as normal, but, on release of both keys, the focussed tab is NOT changed. With the nav panel displayed, you can click on it with the mouse and the focussed tab is changed as expected.
The issue seems to have arisen after installing VS2012. VS2010 is also installed and oddly now also exhibits the same problem, even though I have never had the problem until now. When you re-start VS, all works fine, but after a time ctrl-tab stops working normally. It has been seen to stop working without doing anything other than pressing ctrl-tab a few times i.e. not going to any other VS panel or doing a build etc.
This is a major problem with productivity as I use this constantly to switch between tabs. I know that I can change the shortcut to switch between documents without showing the navigation panel, but I prefer to see this panel, rather than switching 'blind'.
Does anyone know why this might be happening or how to fix it? I have done a full Windows update (Svr 2008 R2).
NOTE1 - I now see the same problem with a new installation of VS2013 and also in SQL Server Management Studio 2012 - on ctrl-tab you see the two-col panel but whatever you select doesn't change the pane in view (unless you click the panel with the mouse).
When ctrl-tab is not working in the VS-based apps, it DOES continue working in, say, Notepad++, which suggests an MS-VS problem.
NOTE2 - The problem does not exist when you use the on-screen keyboard! It seems that using the OSK causes ctr-tab to work again with the real keyboard, but it breaks quickly when you start almost any other application, but it always works with the OSK. The problem is unrelated to the physical keyboard as I have tried other keyboards.
Thanks

Enable button using VBA excel

I have an uncommon issue. I have an Excel file with macros. On all computers it was installed Office 2010 and everything worked fine, but a few days ago every computer was upgraded to Office 2013.
In code, at some point I enable or disable some buttons based on some criterias.
ThisWorkbook.Worksheets("Lab Orders").OLEObjects("CommandButton1").Enabled = False
On some computers this works fine , but on other computers this button is shown as enabled, and if the user clicks the button nothing happens, not even the animation where the the button is pressed, so it cannot execute the code behind. It's like an image. Any leads, or reasons why this is happening only on certain computers ?
I have this problem after the Office got upgraded. PS. All computers are in the same domain.
LATER EDIT
I changed the code line
ThisWorkbook.Worksheets("Lab Orders").CommandButton1.Enabled = True
and now I get this error: 438 at this row (I debbuged the file on a computer where this file does not work)
I suspect it's the issue with the latest Office updates - see if this fixes it: http://excelmatters.com/2014/12/10/office-update-breaks-activex-controls/
On all computers where you have the problem, check the box "Trust access to the VBA project object model" located in Options/Trust Center/Macro Settings
(Note that this will only apply to Excel, and if you are having the same problems on other MS Office softwares, you should do the same on them as well)
If that's still not working, read and apply all the checks on this page : https://support.office.com/en-gb/article/Enable-or-disable-macros-in-Office-files-12b036fd-d140-4e74-b45e-16fed1a7e5c6
Did not fit as a comment, so:
If I understand you correctly, some computers show the button enabled, while in fact it is disabled, right?
In this case it's normal no button press animation "visibly happens" as Windows knows the button was programmatically disabled.
The same thing happens if you hook a window (which has buttons on it) and send any button a WM to show itself as if it was enabled (while in fact it is not).
The reason it seems enabled on some computers may vary, most probably it's video card and/or driver 'issue', or some "strange alignment" (that particular OS with that particular graphics card & driver and DirectX, as well as those 'special' OLE settings, etc).In both cases, the screen area don't get "refreshed" (invalidated) after the button was disabled - so it seems enabled and gets "repainted" only when there was some user interaction around it. "Lazy redraw", so to speak :)
What one can do is, if it happens to be a serious issue, to find a way on one of these computers to get the button visibly disabled with some 'workaround' (e.g. changing button text after it was disabled -maybe even to exactly the same text-, or move it 1 pixel away and back, call InvalidateRect on it, etc), and apply that solution to your Excel macro.
UPDATE after reading asker's comment:
Oh I see. This could happen if the buttons are in a control array. The issue in this case, however should be present on all computers... Strange.
Anyway. Try to test the buttons' Index property to see if they are part of a control array, just to be sure. If yes:
a) remove them from the array and create buttons "independent" from each other
b) create a bool array and store there enabled/disabled status and write a function that updates buttons' text color property & handles button click event ignore/accept

TFS Pending Changes keyboard commands in VS2012

I'm using VS2012 with TFS2010 (which may or may not matter).
I cannot seem to get any of the keyboard commands that should work with the Pending Changes window to, y'know, work.
I've tried the steps listed here, and I've tried binding keys to ever "CompareWith" commands listed in the keyboard dialog. The only ones that actually seem to do anything are the File.* commands, but those operate on the open file, and not the Pending Changes window.
I've seen that commands like Alt-I (check-in) work, but they don't appear in the Keyboard settings.
Does the new window in VS2012 have its own set of keyboard settings that are set somewhere else? I'm trying to get to the point of have an keyboard-only workflow for Comparing, the Excluding or Undoing.
Update:
This is really strange. I can actually see the shortcut keys in the right-click dialog, but pressing them does nothing. I then tried changing it to a chord, and I get the error message: "The key combination (Ctrl+Shift+Q, Ctrl+Shift+Q) is bound to command (Tfs.ContextPendingChangesPageExcludeChanges) which is not currently available"
Update 2: I found this blog post, which has some more shortcuts listed, but not that actually do operations on the individual files. For quick reference, here's his list:
Shortcut Team Explorer Page
Ctrl+' Search
Ctrl+0,H Home
Ctrl+0,P Pending Changes
Ctrl+0,M My Work
Ctrl+0,W Work Items
Ctrl+0,B Build
Ctrl+0,R Reports
Ctrl+0,D Documents
Ctrl+0,S Settings
Ctrl+0,A Web Access – team home page
F5 Refresh
Ctrl+Up Move focus to the previous visible section header
Ctrl+Down Move focus to the next visible section header
Alt+Left Navigate backward
Alt+Right Navigate forward
Alt+Home Focus the navigation control
Alt+0 Focus the page top level content
Alt+[1-9] Focus the visible section [1-9] level content
Alt+Up Focus the previous visible section content
Alt+Down Focus the next visible section content
There is a bug with key bindings in some Team Explorer pages in VS 2012 RTM. This has been fixed for the next VS 2012 update.
-Chad

Resources