Project

General

Profile

Feature #8399

eval helper

Added by Wolfgang Schnerring over 9 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Normal (P3)
Assignee:
-
Category:
API/Selenese
Target version:
-
Start date:
2010-12-03
Due date:
% Done:

0%

Estimated time:
Keywords:

Description

From a project of ours:

    def eval(self, text):
        return self.selenium.getEval(
            "var document = selenium.browserbot.getCurrentWindow().document;\n" 
            + text)

    def wait_for_condition(self, text):
        self.selenium.waitForCondition("""\
        var document = selenium.browserbot.getCurrentWindow().document;
        Boolean(%s);
        """ % text)

History

#1 Updated by Wolfgang Schnerring over 9 years ago

  • Status changed from New to Confirmed

#2 Updated by Wolfgang Schnerring over 7 years ago

  • Status changed from Confirmed to Rejected

In Webdriver, window+document are the ones of the window under test, so everything will be fine.

Also available in: Atom PDF