popup

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

谁说胖子不能爱 提交于 2019-12-02 11:37:14
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(popUpHandle).getTitle()); This attempt prints only the base window's handle, and if the second print

Button with popup showed below [closed]

不想你离开。 提交于 2019-12-02 11:19:32
I want to create specific component in JavaFX. Button which show poupup after onClick event. Scnenario: We click button Popup Shows below button (like on the picture) jewelsea After answering this, I realized it was a duplicate of JavaFX 2 custom popup pane , which has a bit more context info in some of the answers. Use a MenuButton and in a menuItem attached to the MenuButton, set a graphic for the content you want to display in your popup. final MenuItem wizPopup = new MenuItem(); wizPopup.setGraphic(wizBox); final MenuButton popupButton = new MenuButton("frobozz"); popupButton.getItems()

leafletjs how to get a handle to the active pop/marker

吃可爱长大的小学妹 提交于 2019-12-02 10:41:17
I am want to be able to change the content of a popup on a leafletjs map. I have have hundreds of markers each with their own popup, they are loaded in a for loop from an array. var marker = L.marker(new L.LatLng(a[0], a[1]), { title: title }); marker.bindPopup('<img width="'+width+'" height="'+height+'" src="'+a[3]+'"/><br><div id="weather"> <button type="button" onclick="weatherload(\''+a[0]+'\',\''+a[1]+'\')">Click Me for Weather!</button></div>',{'maxWidth':'500','maxHeight':'350','minWidth':'350'}); CAMlayer.addLayer(marker); That makes a popup with a picture and a button. When the button

chrome extension popup cannot find element by ID

假如想象 提交于 2019-12-02 10:37:36
I know similar questions have been asked many times, but I didn't find a solution for mine yet. My question is really simple. All I want to do is to test actions on popup.html, for here, I have a click button on popup, when I click it, I want to show alert. But nothing happened. It's not finding the element. I don't understand what's going wrong here. manefest.json { "name": "test", "version": "1.0", "description": "test", "manifest_version":2, "browser_action": { "default_icon": "logo.png", "default_popup":"popup.html" }, "permissions": [ "tabs", "http://*/*", "notifications" ] } popup.html

Design android popup

浪子不回头ぞ 提交于 2019-12-02 10:33:24
I have a problem when creating a popup for my app. I'm trying to show a popup that fills the total size of my screen. The problem is that i'm getting 1px line at the left side that isn't filled. my popup xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:id="@+id/popup" android:layout_height="match_parent" android:orientation="vertical" > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true"

open pdf in popup android

丶灬走出姿态 提交于 2019-12-02 10:29:00
Iam developing an Android app, where i need to open my pdf file in popup window. My code is: ImageView brobutton=(ImageView)layout.findViewById(R.id.imageView3); brobutton.setOnClickListener(new OnClickListener() { } }); Already I have developed a 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.getSettings(); webSettings.setPluginState(PluginState.ON); mWebView.setWebViewClient(new WebViewClient() {

How to handle browser login popup using Selenium & Java

本小妞迷上赌 提交于 2019-12-02 10:22:58
The website that I am trying to automate has a authentication popup that appears when someone visits it. I tried the following code but Chrome immediately throws no alert present exception on the switchTo() line of the code. Firefox does not seem to be working. I am currently using Selenium 3.6.0 with the latest binaries of these browsers. Can someone please help me out? driver = new FirefoxDriver(); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); driver.get("https://staging.brightsociety.com/"); WebDriverWait wait = new WebDriverWait(driver, 10); wait.until(ExpectedConditions

How to pop up a text box(or tooltip) via script in Java

送分小仙女□ 提交于 2019-12-02 10:17:17
I have a very specific question: I want to be able to, via a method call, popup a tooltip with text(it could say anything) in a given location on the screen for a certain amount of time on method call(say the logic is in a talk method) and fades away. How could I go about that? Is there a way to do it via JTooltip? Or would I have to dive into JNA to get what I want? I should mention I want the tooltip to popup with text in a given location without the cue of a mouse over, like a popup. Also, in case a tooltip is not the right way to go about what I want (which I hope I made clear), is there a

Popup Window stopped working after jQuery update

一个人想着一个人 提交于 2019-12-02 10:08:19
I have been using this script for a while now ( originally written by Soh Tanaka but source website is gone) - it pops up a window over a darkened page with a close button that dismisses it and undims the page. It worked fine until I updated jquery to the latest 1.9.1 to implement some new stuff. Now it pops up the window but clicking the close button does not remove it anymore - it just shunts the page in background to top and it seems to add another layer of darkness to the background. Error console message: TypeError: 'undefined' is not a function (evaluating '$('a.close, #fade').live')

Handling a popup box using powershell

穿精又带淫゛_ 提交于 2019-12-02 09:53:32
Can anyone please tell me how to click on "ok" or "cancel" on a popup window using powershell? I am trying to automate a website using powershell, but I am new to powershell. I have to click on OK button in a popup box to proceed. I know VBscript, in that I can use set obj0 = createobject("wscript.shell") count = 0 do while count = 0 if obj0.appactivate "Popupboxname" then ----perform required action--- count = 1 else wscript.sleep(2000) end if loop Can anyone tell me how to do the same in powershell? If i can somehow access the popup window, atleast i can use sendkeys command to send the