visible

Selenium C# Webdriver How to detect if element is visible

会有一股神秘感。 提交于 2019-12-06 20:46:19
问题 Is there a way in the latest version of Selenium DotNet Webdriver (2.22.0) to check to see if an element is visible before clicking/interacting with it? The only way I've found is to try to handle the ElementNotVisible exception that occurs when you try to send keys, or click on it. Unfortunately this only occurs after an attempt to interact with the element has been made. I'm using a recursive function to find elements with a certain value, and some of these elements are only visible in

Determine if a rect is visible inside window

别说谁变了你拦得住时间么 提交于 2019-12-06 13:54:10
I would like to determine if a rect inside a window is completly visible. I have found RectVisible, but that function determines if any part of the rect is visible, I want to know if the entire rect is visible. Is there any function for this? First get the system clipping region (the visible region of a window) into a region by using GetRandomRgn . Read more about the 'system region' here . Then, offset that region since it is in screen coordinates (the article I linked has an example). After that, create a region from your rectangle with CreateRectRgn and combine the parts of your 'rectangle

WPF DataGridComboBoxColumn`s ComboBox is only visible when DataGrid has IsReadOnly=FALSE

最后都变了- 提交于 2019-12-06 04:45:57
问题 Why is the ComboBox in that column only visible via double-click in the empty cell when the DataGrid is set to IsReadOnly = FALSE ??? <DataGridComboBoxColumn Width="*" IsReadOnly="False" Header="test" /> using a DataTemplateColumn works as always... whats wrong with that DataGridComboBoxColumn? works: <DataGridTemplateColumn Header="Schoolclass"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <ComboBox Background="Blue" /> </DataTemplate> </DataGridTemplateColumn.CellTemplate> <

Make programmatic range selection visible to the user?

删除回忆录丶 提交于 2019-12-06 04:18:51
How can I make a programmatical page selection visible to the user, as if it was selected by the user? var range = document.createRange(); var startPar = [some node]; var endLi = [some other node]; range.setStart(startPar,13); range.setEnd(endLi,17); Thank you. Use: window.getSelection().addRange(range); 来源: https://stackoverflow.com/questions/1426634/make-programmatic-range-selection-visible-to-the-user

UpdatePanel.Visible = true has no effect

不问归期 提交于 2019-12-05 10:36:46
There is a wide task. There is an update panel upDetails, which displays details table (initialy visible = false) when user selects any item from master table, we should set upDetails.Visible = true; But it soesn't work whatever place/event I had placed it - neither BL methods, neither pre-render. It still be invisible But when I do not make it initialy invisible, all works fine What do I do wrong? Thanks in advance Are you talking about the ASP.NET Ajax UpdatePanel Control? Try to put a "real" Panel Control (asp:Panel) inside the UpdatePanel and set the visibilty false/true on that control

Why is my hidden <tr> not really hidden?

泪湿孤枕 提交于 2019-12-05 09:28:07
I have this simple html markup generated from classic asp: <table> <tr class="trClass"> <td>Hello </td> </tr> <tr class ="trClass"> <td>World!</td> </tr> </table> If i set the tr belonging to Hello to hide() using Jquery it hides. Good! But, when i use this $('.trClass:visible').each(function() { alert('visible') }); it shows the output 'visible' twice. Why is this? My problem here is that im filtering a table on a column with a selection box. But after filtering i need to perform some calculations on those rows that are visible in the table, but i get all rows right now. Any ideas? /Daniel

three.js 添加 图形控制界面 gui

雨燕双飞 提交于 2019-12-05 06:56:39
需要导入这个js: import { GUI } from '/three.js/jsm/libs/dat.gui.module.js'; 局部代码: var params = { color: 0xffffff, transparency: 0.90, envMapIntensity: 1, lightIntensity: 1, exposure: 1, visible:true }; var gui = new GUI(); gui.addColor(params, 'color') .onChange(function () { material.color.set(params.color); }); gui.add(params, 'transparency', 0, 1) .onChange(function () { material.transparent = true;//允许透明 material.opacity = params.transparency;//设置 透明度 //material.transparency = params.transparency; }); gui.add(params, 'envMapIntensity', 0, 1) .name('envMap intensity') .onChange(function () {

What is the best way to determine if a window is actually visible in WPF

时光怂恿深爱的人放手 提交于 2019-12-05 02:14:35
I'm trying to toggle the display of a small window based on the click of a notify icon in a system tray app. This is simple enough to implement, however when the small window is displayed and another application takes focus and therefore moves in front of it (z-order) I want the toggle to assume that the small window is now hidden, even though it's visibility is still set to visible. Otherwise, clicking the icon would set the windows visiblity to hidden even though it is already hidden behind another. I've tried catching / overriding the activate and deactive methods to keep track but clicking

How to get the “real” value of the Visible property?

倾然丶 夕夏残阳落幕 提交于 2019-12-05 01:03:39
If you set the Visible property of a Windows Forms control to true, that property still returns false if any of the control's parent windows are hidden. Is there a way to get the true, underlying visibility flag of the control in case the parent window is hidden? Marc Gravell Well, the regular implementation does check up the control stack, to ensure that all parents are visible. The only way I know to dodge this is to cheat with reflection, and ask for GetState(2) , but that is brittle: // dodgy; not recommended Panel query; Form form = new Form { Controls = { new Panel { Visible = false,

Calculating number of visible items in ListBox

别等时光非礼了梦想. 提交于 2019-12-04 17:56:16
I have a class called Book; class Book { public string Name { get; set; } public string Author { get; set; } public int PagesCount { get; set; } public int Category { get; set; } } The ListBox displays a list of Books and the ItemTemplate has been modified so as to visually represent the Book. The text shows the book's Name, author and the number of pages. The category, however is represented by a certain color (for example, history is blue, romance is red etc.) Now, the text has an OuterGlowBitmap Effect and a value converter from the Category (int) to the appropriate Color. Everything is