popup

Problem with Pop-up Windows using Selenium

前提是你 提交于 2020-01-14 04:16:05
问题 I'm new to the testing world, so my question might seem a lil' bit too naive and stupid. At risk of looking/sounding stupid, my question is this: I've been trying to test the contents in a pop-up window on my company's web app. I've figured out how to detect the pop-up window for now, but i can't get selenium to 'click' on the link inside of that pop-up window. there are multiple pop-ups in this web app so it's really difficult for a newbie like to create a test case. I tried the click,

Monotouch - Popups over everything

有些话、适合烂在心里 提交于 2020-01-14 04:09:06
问题 On iPhone, in Xcode, I can show a popup view which overlays everything, including the Tab Bar, etc, by using code like this - [[[[UIApplication sharedApplication] delegate] window] addSubview:mySpecialView]; I'm trying to do the same in MonoTouch, and the code I'm using is this - UIApplication.SharedApplication.Delegate.Window.AddSubview(mySpecialView); ...but this crashes. Does anyone have any idea what I'm doing wrong? Thanks for any help. 回答1: You did not say how it crashed - but I assume

iPhone SDK: Do I need to ask user for permissions to use GPS?

独自空忆成欢 提交于 2020-01-13 09:56:05
问题 In my iPhone application I need to use GPS (CoreLocation to be exact) to get current position of the device. I know that most (if not all) applications using GPS have a popup implemented asking the user to allow GPS access. Is that done automatically by the iPhone SDK or should I implement such functionality myself? I've tried to run my app on iPhone Simulator and it didn't ask for permissions at all so I'm wondering if the same thing will happen on the actual phone. And if I implement that

opening modal window from iFrame into parent window

南笙酒味 提交于 2020-01-13 06:18:10
问题 I need some help appending a modal from an iFrame to it's parent body. I've heard about the jQuery plugin SimpleModal and even tried it, but failed. So I have a page with an iFrame and inside this iFrame there is a button that should open a modal window in the parent window. The problem is that I don't have access to put code into the parent window. I just have access to the iFrame. For any kind of help, I'm very thankful! 回答1: Without any example code, it's kinda hard to show you per your

Popup on website load once per session [duplicate]

不羁岁月 提交于 2020-01-12 08:37:23
问题 This question already has answers here : Display A Popup Only Once Per User (6 answers) Closed 4 years ago . I found some ways to make javascript/jquery popup windows. But, there were some problems, first of all, I am not very good with these two languages, just beginner. If there is any ready code, for opening POPUP window on website load, but only once per browser session. It would be very nice, if someone could help me with this. I need simple popup, with just some text in it, but design

open pdf in popup android

不问归期 提交于 2020-01-11 13:32:47
问题 I am developing an Android app, where I need to open my pdf file in a popup window. My code is: ImageView brobutton=(ImageView)layout.findViewById(R.id.imageView3); brobutton.setOnClickListener(new OnClickListener() { } }); I already have developed an app to open pdf in emulator with this code: final String googleDocsUrl = "http://docs.google.com/viewer?url="; WebView mWebView=new WebView(SubProducts.this); mWebView.getSettings().setJavaScriptEnabled(true); WebSettings webSettings = mWebView

Unable to get new window handle with Selenium WebDriver in Java on IE

China☆狼群 提交于 2020-01-11 13:15:19
问题 When I click a button on a page (in IE browser), a new popup page opens. My attempts to get the window handle for this popup have failed. Here is my first attempt: String baseWin = driver.getWindowHandle(); System.out.println(baseWin); Set<String>s = driver.getWindowHandles(); Iterator<String> ite = s.iterator(); while ( ite.hasNext() ) { String popUpHandle = ite.next(); if(!baseWin.equals(popUpHandle)) { driver.switchTo().window(popUpHandle); System.out.println(driver.switchTo().window

WPF: PopUp on MouseOver of a ComboBoxItem

喜你入骨 提交于 2020-01-11 08:05:10
问题 Does anyone know of an example of how to display a PopUp on MouseOver of a ComboBoxItem? TIA EDIT: I know how to create, style and position the PopUp but not how to display it! I may be retired. 回答1: Before we start, could you just use a tooltip? otherwise, style the ComboBoxItem's control telmplate, include your popup in the style positioned where you want but set the Isopen property to false. Use a trigger on mouse over to set your popup's IsOpen property to true. here is an example of

WPF: PopUp on MouseOver of a ComboBoxItem

ぃ、小莉子 提交于 2020-01-11 08:04:04
问题 Does anyone know of an example of how to display a PopUp on MouseOver of a ComboBoxItem? TIA EDIT: I know how to create, style and position the PopUp but not how to display it! I may be retired. 回答1: Before we start, could you just use a tooltip? otherwise, style the ComboBoxItem's control telmplate, include your popup in the style positioned where you want but set the Isopen property to false. Use a trigger on mouse over to set your popup's IsOpen property to true. here is an example of

How to open a new popup window by clicking an html action link in MVC?

允我心安 提交于 2020-01-11 05:29:07
问题 I've a view page in which there's an HTML ActionLink. Now on click of that action link, i want to open a new popup window without closing the previous one. In this new popup window i want to show my existing view page. please provide me a better solution. 回答1: Specify the HTML 'target' attribute using the htmlAttributes parameter. In Razor: @Html.ActionLink("New Window", "Index", null, new { target= "_blank" }) In ASPX syntax: <%= Html.ActionLink("New Window", "Index", null, new { target= "