visible

How to use protractor to check if an element is visible?

不羁的心 提交于 2019-11-28 15:41:13
I'm trying to test if an element is visible using protractor. Here's what the element looks like: <i class="icon-spinner icon-spin ng-hide" ng-show="saving"></i> When in the chrome console, I can use this jQuery selector to test if the element is visible: $('[ng-show=saving].icon-spin') [ <i class=​"icon-spinner icon-spin ng-hide" ng-show=​"saving">​</i>​ ] > $('[ng-show=saving].icon-spin:visible') [] However, when I try to do the same in protractor, I get this error at runtime: InvalidElementStateError: invalid element state: Failed to execute 'querySelectorAll' on 'Document': '[ng-show

Android soft keyboard will hide for no reason

时光总嘲笑我的痴心妄想 提交于 2019-11-28 08:57:02
问题 I'm having the following issue - I have placed android:windowSoftInputMode = "stateAlwaysVisible" in my manifest which works relatively fine since the software keyboard is almost always visible. I have a webview in which I have an editable div in which the user can enter text. However when the user have entered some text and taps somewhere else on the webview(on a position different from the current cursor position) the software keyboard will hide for a moment and afterwards reappear. I'm at

Android - how update widget often but only when it is visible?

你离开我真会死。 提交于 2019-11-28 03:29:08
I'm going to create widget which needs to update its content every minute (it shows time-related data). However, there is no need to update widget if it is currently invisible, which means: screen is turned off another app is running widget is placed on another (invisible) home screen tab What is the best way to update only visible widget every minute - without waking up device nor doing unnecessary computations? After widget becomes visible, small lag before update is acceptable. Mark B To keep from updating when the screen is off, use the AlarmManager to schedule a recurring alarm that doesn

Error when I use SpecialCells of AutoFilter to get visible cells in VBA

你离开我真会死。 提交于 2019-11-27 18:48:44
问题 My main goal is to copy the visible cells of an autofilter and later copy the dimensions of the visible cells to the new sheet. I am using this code: Sheets(1).AutoFilterMode = False Sheets(1).Range("A1:A1").AutoFilter Field:=columnaNumeroIntervalo, criteria1:=CDec(paramCantidadCriterio) Sheets(1).Range("A1:A1").AutoFilter Field:=columnaNumeroIntervaloUnidades, Criteria1:=paramUnidadesCriterio MsgBox AutoFilter.Range.SpecialCells(xlCellTypeVisible)(2, 11).Value With the last line I want to

Always show FooterTemplate, even no data

偶尔善良 提交于 2019-11-27 18:48:25
问题 Is there a short way to make a FooterTemplate (in a GridView) always visible, even when DataSource is empty? 回答1: If you want it to always display, regardless of content, can't you just put the footer html outside the GridView , instead of in the FooterTemplate ? If that's not an option for some reason, then you can either add an null row to your data source if it's empty, or subclass the GridView & override the default behaviour. Those are the only options I'm aware of (although its been a

SSIS: Make Excel Visible In Script Task During SQL Server Agent Job Run

前提是你 提交于 2019-11-27 15:58:47
I built a package in SSIS that uses a script task to open an Excel file, format, and refresh some data in Excel. I would like to have Excel visible when the script task is running to see if Excel gets hung up which occurs all the time. Is this possible? I am converting a process that is calling Excel via a shell script to using SSIS to call Excel instead. I guess a second question is, is that a bad idea? billinkc Why this is a bad idea Generally speaking, administrators are tasked with maximizing the amount of "uptime" a server or service on the server has. The more software that gets

How can I tell if a Delphi control is currently visible?

早过忘川 提交于 2019-11-27 15:18:17
问题 I need a way to for a custom control (descended from TCustomControl) to tell if it is currently visible. I'm not talking about the .Visible property; I mean whether or not it's actually being displayed on-screen at the moment. Does anyone know how to do this? 回答1: A few years back I had the same kind of problem for a Form: I was looking for a way to determine if a Form is actually visible (even only partially) to the user. In particular when it was supposed to be visible and Showing was True

Scroll if element is not visible

这一生的挚爱 提交于 2019-11-27 14:33:14
问题 how to determine, using jquery, if the element is visible on the current page view. I'd like to add a comment functionality, which works like in facebook, where you only scroll to element if it's not currently visible. By visible, I mean that it is not in the current page view, but you can scroll to the element. 回答1: Live Demo Basically you just check the position of the element to see if its within the windows viewport. function checkIfInView(element){ var offset = element.offset().top - $

Set Visible property with server tag <%= %> in Framework 3.5

孤者浪人 提交于 2019-11-27 07:32:24
I have been working in a .NET Framework 4 project using server tags like <%=whatever %> to set the visibility of runat="server" controls, like the following: <div id="MyId" runat="server" visible="<%=MyVisiblePropertyOnCodeBehind %>" > Content </div> This works on framework 4, but now trying to use this on a Framework 3.5 project it doesn't seems to work. Is this a Framework 4 only feature? Is there a coolest (and .aspx side) alternative to setting the visibility from codebehind? I'm using the ugly: MiId.Visible = MyVisiblePropertyOnCodeBehind Thanks in advance, Tom [EDITED] SOLUTION: Thanks

How to tell if notification shade is pulled down in android

那年仲夏 提交于 2019-11-27 07:13:40
问题 I have a program that creates a notification if the application is not running. To do this, I have used the following code: public void onWindowFocusChanged(boolean focus) { inFocus = focus; if (inFocus) {//If this activity is in focus, fills data and clears notifications fillData(); Notify.clear(); } else { if (!RespondScreen.inFocus && !ClearDialog.inFocus) { Creates a notification } } } This works fine, except when the notification shade is pulled down. This causes the activity to not be