frames

How to get total number of nested frames inside the frame

僤鯓⒐⒋嵵緔 提交于 2021-01-28 08:41:03
问题 Snapshot of Frame_top with 3 nested frames: Code: WebElement topframe = driver.findElement(By.xpath("//frame[@name='frame-top']")); String frame1 = driver.switchTo().frame(topframe).switchTo().frame("frame-left").findElement(By.xpath("//body")).getText(); System.out.println(frame1); List<WebElement> nestedFrames = driver.switchTo().frame(topframe).findElements(By.tagName("frame")); System.out.println(nestedFrames.size()); On top you can see this page has nested frames inside the frame(frame

Javascript Move opener window

有些话、适合烂在心里 提交于 2021-01-07 06:04:25
问题 I have two windows; one is inside a frameset and the other is opened from the other in a new window (window.open(...)). I am trying to move the left edge of the opened window to the right edge of the opener window. Here are the requirements: Must work in IE8. Cannot modify the code in the opener window. The opened window should be completely visible (See the X in the upper-right hand corner) I was able to find a solution that gets the correct width and height (with the scroll bars) of a IE8

Select element in a frame

天涯浪子 提交于 2020-02-07 12:45:52
问题 My goal is to change a value from a to d inside the array options in menu.html using Greasemonkey extension in Firefox but my problem is that the element I am trying to select/access is loaded as a frame . I have been trying to solve this issue for some time now and I would be very happy if somone could help me out. I have got two files main.html and menu.html whose contents are: main.html (is the main page) <html> <head> <meta http-equiv="Pragma" content="no-cache"> <script language=

Select element in a frame

我的未来我决定 提交于 2020-02-07 12:45:08
问题 My goal is to change a value from a to d inside the array options in menu.html using Greasemonkey extension in Firefox but my problem is that the element I am trying to select/access is loaded as a frame . I have been trying to solve this issue for some time now and I would be very happy if somone could help me out. I have got two files main.html and menu.html whose contents are: main.html (is the main page) <html> <head> <meta http-equiv="Pragma" content="no-cache"> <script language=

How to create multiple frames in a single frame to display input as welll as output?

天大地大妈咪最大 提交于 2020-01-25 10:58:06
问题 I am creating a programs that detects number of fingers and displays them. Further I'll be updating it to addition of multiple digit numbers. I saw this video on youtube and I wonder how he managed to split his input and output screen into 2 different screens? my current program displays the text in the frame itself . in the given picture he has divided his output screen into 2 screens one that displays the video cam and another displays its output. I need help to understand how he did it?

Movieclip color is not working properly? [duplicate]

瘦欲@ 提交于 2020-01-17 01:13:26
问题 This question already has answers here : How to maintain a movieclip's color between frames? (2 answers) Closed 5 years ago . I have 2 frames and in frame 1 the target MC color is being changed to RED. After that i go to frame 2. If i came back to frame 1 the MC doesn't retain the RED color. What i do wrong. Please see the pictures. http://www.picz.ro/index.php?id=ec122060763b0fd744d2499882d4ae1f and http://www.picz.ro/index.php?id=00e207dfad35e7e414ed3236a1f79448 回答1: eliminating frames, you

Remove frames and loading content into the div

主宰稳场 提交于 2020-01-16 18:48:06
问题 Is there anyway i can unload a page that has been loaded inside an iframe? it likely removing the windows and loading content from other pages into the div ? I am using iframe on my main screen to call a file left_nav.php <iframe src='left_nav.php' name='left_nav' class="daemon" scrolling="auto" frameborder='0' height='100%' width="100%"></iframe> In left_nav functions and methods to load content from other pages like main_title.php Function created in left_nav.php file below setEncounter

How do I change the URL of the “parent” frame?

你。 提交于 2020-01-13 10:21:35
问题 I have a website which I host myself. I do not have a static IP address so I have all traffic for my domain forwarded with masking to my DDNS account. The resulting page looks like this... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>mydomianname.com</title> </head> <frameset rows="100%,*" border="0"> <frame src="http://myddns.dyndns.org/mydomainname" frameborder="0" /> <frame frameborder="0" noresize /> </frameset> </html>

Javascript/jQuery: calling function in another frame

梦想的初衷 提交于 2020-01-12 09:52:29
问题 I'm new to the DOM and JavaScript and hitting on some problems when trying to call a function defined in a frame from the context of the top-level frame or Firebug. Given the below frameset: <html> <body> <frameset cols="*" rows="81,*"> <frame id="topFrame" tabindex="1" name="topFrame" noresize="noresize" scrolling="No" src="hometop.aspx"/> <frameset border="0" cols="214,*" frameborder="no" framespacing="0"> <frameset border="0" cols="*" frameborder="no" framespacing="0" rows="70,*"> <frame

How to wait for a frame to load before locating an element?

半城伤御伤魂 提交于 2020-01-09 11:14:29
问题 I'm trying to wait for Selenium to switch changing frames before waiting on another element. I.e. var wait = new WebDriverWait(driver, 15); wait.Until(ExpectedConditions.FrameToBeAvailableAndSwitchToIt(By.Id("frameA")); var wait2 = new WebDriverWait(driver, 15); // wait for element within frameA to exist wait2.Until(ExpectedConditions.ElementExists(By.Id("elementA"))); If I toss in a simple Thread.Sleep(1000); before the second wait it functions fine, but without that I get the following