popup

I can't use API reflection on androidx.appcompat:appcompat:1.1.0

拥有回忆 提交于 2021-02-05 12:03:04
问题 I have a problem with androidx.appcompat:appcompat:1.1.0. It's a new problem because on androidx.appcompat:appcompat:1.0.2 it does not exist. I have a code that uses reflection to get mPopup Field from the spinner and set its height. It works very well on appcompat:1.0.2 but not on androidx.appcomppat:appcompat:1.1.0. The code is private void setPopUp() { try { Field popup = getPopupField(); // Get private mPopup member variable and try cast to ListPopupWindow final android.widget

Selenium Log-in on Pop-up webpage without html

廉价感情. 提交于 2021-01-29 20:12:29
问题 In my Selenium program, I use a google-chrome driver to access and log into my account on this webpage. The problem is that the log-in webpage is a program with a pop-up window and without any HMTL code I can grab. Therefore I don't know how to type in my credentials. I have looked around and have seen several proposals with 'actions' like actions = ActionChains(driver) actions.send_keys('skdkds') actions.perform() But the problem is that it doesn't type in anything, it only places the cursor

Rselenium / dialog box

北战南征 提交于 2021-01-29 15:15:21
问题 I am very new to RSelenium. I have a list of Finnish companies and I would like to extract the corresponding Business ID on the web page https://tietopalvelu.ytj.fi/yrityshaku.aspx?kielikoodi=3 A simple version of my R-code is the following: library(RSelenium) name_company <- c("nokia", "test") driver <- rsDriver(browser= 'firefox', port = 16L) remote_driver <- driver[["client"]] remote_driver$navigate("https://tietopalvelu.ytj.fi/yrityshaku.aspx?kielikoodi=3") input1 <- remote_driver

triggering Popup.dismiss() in a method which didn't call Popup.open() (kivy)

被刻印的时光 ゝ 提交于 2021-01-29 11:19:51
问题 I'm trying to develop a kivy app for my less-comp-savvy colleagues which wraps a nice GUI around some computations which I developed for a project; currently I have two methods embedded in a class, one (called 'dummy') which keeps the GUI from freezing and from such multithreads the second method (called 'calculate') which actually runs the computation. Within the dummy method I'm hoping to open a popup which displays a 'loading GIF' (indicating that the program is running and not just frozen

Alert Python Selenium, Chrome WebDriver: switch to alert doesn't work

心已入冬 提交于 2021-01-29 09:39:01
问题 Dismissing the alert doesn't work. I get an error every time, I'm using python and working with chrome webdriver. Passing login and password works fine. I would really appreciate some help:) Thanks:D from selenium import webdriver import time browser = webdriver.Chrome('My chromedriver path') a = 1 while a == 1: try: browser.get('https://www.facebook.com/') time.sleep(2) l = browser.find_element_by_id('email') l.send_keys('myphonenumber') l = browser.find_element_by_id('pass') l.send_keys(

JS popup is not working on Safari (hide/show)

老子叫甜甜 提交于 2021-01-29 07:44:11
问题 Simple popup with js is not working on IPhone and IPad Tried to replace href="javascript:PopUpShow()" to onclick="PopUpShow()", but still the same, it works everywhere but Safari <a href="javascript:PopUpShow()" id="pop-show">click me</a> <div onclick="PopUpShow()"><i class="fas fa-phone"></i> </div> <div class="b-popup" id="popup1"> <div class="b-popup-content"> <a class="b-popup-close" href="javascript:PopUpHide()"> <div class="col-md-4 col-12 padding-pop"> <div class="right-cont-pop" id=

Kivy: Dismiss One Popup From Another Popup

这一生的挚爱 提交于 2021-01-29 06:09:24
问题 I use kivy.factory.Factory to open the popups, but it's not working when I want to close them. Code: from kivy.app import App from kivy.lang import Builder x = Builder.load_string(""" #:import F kivy.factory.Factory #:import Window kivy.core.window.Window Screen: Button: text: 'Press to Open First Popup' on_press: F.FirstPopup().open() <FirstPopup@Popup>: title: 'First Popup' size_hint: None, None width: Window.width / 1.4 height: Window.width / 1.4 Button: text: 'Press to Open Second Popup'

How to set height and width of a new window from code behind

房东的猫 提交于 2021-01-28 18:51:55
问题 I have been trying this from hours that I am opening a new window and I am bound to launch from code behind so it is not opening in new tab. I want to adjust the height and width of this window, but I am unable to set the same. I also tried calling a javascript function from code behind and writing the same in aspx page, but no luck. I am posting my code: From Code behind: Page.ClientScript.RegisterStartupScript(typeof(string), scriptKey, "<script type='text/javascript'>window.open('..

Appending children into a popup-window. (JavaScript)

浪子不回头ぞ 提交于 2021-01-27 19:00:42
问题 I'm having some trouble trying to get a fairly simple popupper to work. The idea is that the parent should open a popup window and then append a div in it. The relevant parts of the code: parent.html : var childWindow; function togglePref() { childWindow = window.open("popup.html", "prefPopup", "width=200,height=320"); } function loadPopupElements() { var prefElements = document.getElementById("prefBrd").cloneNode(true); var childDoc = childWindow.document; var childLink = document

I'm trying to use javascript to open a popup window. It works in Chrome but not in IE or Firefox

喜你入骨 提交于 2021-01-27 14:23:14
问题 I'm trying to use javascript to open a popup window. It works in chrome but not in IE or Firefox. Here is my code for the head section: <head> <script type="text/javascript"> function newPopup(url) { popupWindow = window.open( url,'popUpWindow','height=400,width=400,left=550,top=200,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes') } </script> </head> And my code in the body section: <body> <a href="javascript:newPopup('buy-now/ambush-jacket.html');"