Help for this page

Select Code to Download


  1. or download this
    1)$sel->get_eval($script)
    
    Gets the result of evaluating the specified JavaScript snippet.
    
  2. or download this
    2)$sel->run_script($script)
    
    Creates a new "script" tag in the body of the current test window, and
    + adds the specified text into the body of the command. Scripts run in
    +this way can often be debugged more easily than scripts executed usin
    +gSelenium's "getEval" command. Beware that JS exceptions thrown in th
    +ese scripttags aren't managed by Selenium, so you should probably wra
    +p your scriptin try/catch blocks if there is any chance that the scri
    +pt will throwan exception.