Did you write any User Extensions?


    • Quản lý
      VNTesters on #3646

      User extensions are stored in a separate file that we will tell Selenium IDE or Selenium RC to use. Inside there the new function will be written in JavaScript.

      Because Selenium’s core is developed in JavaScript, creating an extension follows the standard rules for prototypal languages. To create an extension, we create a function in the following design pattern.

      Selenium.prototype.doFunctionName = function(){

      .

      }

      The “do” in front of the function name tells Selenium that this function can be called as a command for a step instead of an internal or private function.

Bạn cần đăng nhập để phản hồi chủ đề này.