Note that there are some explanatory texts on larger screens.

plurals
  1. POgetAllWindowTitles method in Selenium 2 behaving differently
    text
    copied!<p>I'm trying to get my old Selenium RC tests to function with Selenium 2.0b2 standalone. I'm using the Selenium python driver and have not gone with the approach of running weddriver and selenium tests side by side with the WebDriverBackSelenium. This maybe the approach but thats a separate question. So I'm faced with a problem of getting Selenium 2 to work with Firefox 3 &amp; 4. Here is a sample of my test:</p> <pre><code>sel.open("window.html") sel.click("ff4button") for i in range(60): windowname = sel.get_all_window_titles() print windowname </code></pre> <p>The only window this ever finds is the parent window in this case called Base window, here is the source of the 2 HTML files</p> <p>The window.html source is this:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;Base window&lt;/title&gt; &lt;script type="text/javascript"&gt; function openwindow() { window.open("test.html", "testwindow", "width=500,height=500"); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Firefox 4 Selenium sample&lt;/h1&gt; &lt;button id="ff4button" onclick="openwindow()"&gt;Open new window&lt;/button&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Which opens test.html:</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt;testwindow&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;New Window&lt;/h1&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Anyone have ideas on why this isn't seeing the new window opened. This is a showstopper for me at least running Selenium 2.0b2 until i can migrate my tests to webdriver.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload