Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

repl interactive mode not working? #2124

Closed
ankitshah2787 opened this issue May 7, 2015 · 3 comments
Closed

repl interactive mode not working? #2124

ankitshah2787 opened this issue May 7, 2015 · 3 comments

Comments

@ankitshah2787
Copy link

I am trying to debug my protractor test and as mentioned in the document I went to repl mode and started issuing commands but that doesn't seem to work.

Trying out the element selector element(by.binding('nopenopenope')).getText() mentioned in the debugging README gives me this instead of the expected NoSuchElementError: No element found using locator: by.binding("nopenopenope")

{ ptor_: 
   { controlFlow: [Function],
     schedule: [Function],
     setFileDetector: [Function],
     getSession: [Function],
     getCapabilities: [Function],
     quit: [Function],
     actions: [Function],
     touchActions: [Function],
     executeScript: [Function],
     executeAsyncScript: [Function],
     call: [Function],
     wait: [Function],
     sleep: [Function],
     getWindowHandle: [Function],
     getAllWindowHandles: [Function],
     getPageSource: [Function],
     close: [Function],
     getCurrentUrl: [Function],
     getTitle: [Function],
     findElementInternal_: [Function],
     findDomElement_: [Function],
     findElementsInternal_: [Function],
     takeScreenshot: [Function],
     manage: [Function],
     switchTo: [Function],
     driver: 
      { session_: [Object],
        executor_: [Object],
        flow_: [Object],
        fileDetector_: null },
     element: [Function],
     '$': [Function],
     '$$': [Function],
     baseUrl: 'https://norrin.corp.yahoo.com:3000/',
     rootEl: 'body',
     ignoreSynchronization: true,
     getPageTimeout: 10000,
     params: {},
     resetUrl: 'data:text/html,<html></html>',
     mockModules_: [ [Object] ],
     getProcessedConfig: [Function],
     forkNewDriverInstance: [Function],
     _conf: 
      { framework: 'mocha',
        specs: [Object],
        seleniumAddress: 'http://localhost:4444/wd/hub',
        multiCapabilities: [Object],
        suites: [Object],
        mochaOpts: [Object],
        onPrepare: [Function],
        onCleanUp: [Function],
        baseUrl: 'https://norrin.corp.yahoo.com:3000/',
        configDir: '/Users/ankitdsh/norrin/test/protractor/spec' },
     _coverage_enabled: false,
     clearCookies: [Function],
     getBrowserName: [Function],
     getVar: [Function],
     hover: [Function],
     isMobile: [Function],
     scrollToBottom: [Function],
     scrollIntoView: [Function],
     signIn: [Function],
     signOut: [Function],
     bouncerSignIn: [Function],
     bouncerSignOut: [Function],
     resizeWindow: [Function],
     varExists: [Function],
     waitForEvent: [Function],
     waitForEventAfterClick: [Function],
     waitForReload: [Function],
     waitToBeDisplayed: [Function],
     waitToBePresent: [Function],
     serveFiles: [Function],
     getLocal: [Function],
     useProxy: [Function] },
  parentElementArrayFinder: 
   { ptor_: 
      { controlFlow: [Function],
        schedule: [Function],
        setFileDetector: [Function],
        getSession: [Function],
        getCapabilities: [Function],
        quit: [Function],
        actions: [Function],
        touchActions: [Function],
        executeScript: [Function],
        executeAsyncScript: [Function],
        call: [Function],
        wait: [Function],
        sleep: [Function],
        getWindowHandle: [Function],
        getAllWindowHandles: [Function],
        getPageSource: [Function],
        close: [Function],
        getCurrentUrl: [Function],
        getTitle: [Function],
        findElementInternal_: [Function],
        findDomElement_: [Function],
        findElementsInternal_: [Function],
        takeScreenshot: [Function],
        manage: [Function],
        switchTo: [Function],
        driver: [Object],
        element: [Function],
        '$': [Function],
        '$$': [Function],
        baseUrl: 'https://norrin.corp.yahoo.com:3000/',
        rootEl: 'body',
        ignoreSynchronization: true,
        getPageTimeout: 10000,
        params: {},
        resetUrl: 'data:text/html,<html></html>',
        mockModules_: [Object],
        getProcessedConfig: [Function],
        forkNewDriverInstance: [Function],
        _conf: [Object],
        _coverage_enabled: false,
        clearCookies: [Function],
        getBrowserName: [Function],
        getVar: [Function],
        hover: [Function],
        isMobile: [Function],
        scrollToBottom: [Function],
        scrollIntoView: [Function],
        signIn: [Function],
        signOut: [Function],
        bouncerSignIn: [Function],
        bouncerSignOut: [Function],
        resizeWindow: [Function],
        varExists: [Function],
        waitForEvent: [Function],
        waitForEventAfterClick: [Function],
        waitForReload: [Function],
        waitToBeDisplayed: [Function],
        waitToBePresent: [Function],
        serveFiles: [Function],
        getLocal: [Function],
        useProxy: [Function] },
     getWebElements: [Function],
     actionResults_: 
      { closure_uid_243741640: 1101,
        flow_: [Object],
        stack_: null,
        parent_: [Object],
        callbacks_: null,
        state_: 'pending',
        handled_: false,
        pendingNotifications_: false,
        value_: undefined },
     locator_: 
      { findElementsOverride: [Function],
        toString: [Function] },
     click: [Function],
     sendKeys: [Function],
     getTagName: [Function],
     getCssValue: [Function],
     getAttribute: [Function],
     getText: [Function],
     getSize: [Function],
     getLocation: [Function],
     isEnabled: [Function],
     isSelected: [Function],
     submit: [Function],
     clear: [Function],
     isDisplayed: [Function],
     getOuterHtml: [Function],
     getInnerHtml: [Function],
     getId: [Function],
     getRawId: [Function] },
  then: [Function],
  elementArrayFinder_: 
   { ptor_: 
      { controlFlow: [Function],
        schedule: [Function],
        setFileDetector: [Function],
        getSession: [Function],
        getCapabilities: [Function],
        quit: [Function],
        actions: [Function],
        touchActions: [Function],
        executeScript: [Function],
        executeAsyncScript: [Function],
        call: [Function],
        wait: [Function],
        sleep: [Function],
        getWindowHandle: [Function],
        getAllWindowHandles: [Function],
        getPageSource: [Function],
        close: [Function],
        getCurrentUrl: [Function],
        getTitle: [Function],
        findElementInternal_: [Function],
        findDomElement_: [Function],
        findElementsInternal_: [Function],
        takeScreenshot: [Function],
        manage: [Function],
        switchTo: [Function],
        driver: [Object],
        element: [Function],
        '$': [Function],
        '$$': [Function],
        baseUrl: 'https://norrin.corp.yahoo.com:3000/',
        rootEl: 'body',
        ignoreSynchronization: true,
        getPageTimeout: 10000,
        params: {},
        resetUrl: 'data:text/html,<html></html>',
        mockModules_: [Object],
        getProcessedConfig: [Function],
        forkNewDriverInstance: [Function],
        _conf: [Object],
        _coverage_enabled: false,
        clearCookies: [Function],
        getBrowserName: [Function],
        getVar: [Function],
        hover: [Function],
        isMobile: [Function],
        scrollToBottom: [Function],
        scrollIntoView: [Function],
        signIn: [Function],
        signOut: [Function],
        bouncerSignIn: [Function],
        bouncerSignOut: [Function],
        resizeWindow: [Function],
        varExists: [Function],
        waitForEvent: [Function],
        waitForEventAfterClick: [Function],
        waitForReload: [Function],
        waitToBeDisplayed: [Function],
        waitToBePresent: [Function],
        serveFiles: [Function],
        getLocal: [Function],
        useProxy: [Function] },
     getWebElements: [Function],
     actionResults_: 
      { closure_uid_243741640: 1101,
        flow_: [Object],
        stack_: null,
        parent_: [Object],
        callbacks_: null,
        state_: 'pending',
        handled_: false,
        pendingNotifications_: false,
        value_: undefined },
     locator_: 
      { findElementsOverride: [Function],
        toString: [Function] },
     click: [Function],
     sendKeys: [Function],
     getTagName: [Function],
     getCssValue: [Function],
     getAttribute: [Function],
     getText: [Function],
     getSize: [Function],
     getLocation: [Function],
     isEnabled: [Function],
     isSelected: [Function],
     submit: [Function],
     clear: [Function],
     isDisplayed: [Function],
     getOuterHtml: [Function],
     getInnerHtml: [Function],
     getId: [Function],
     getRawId: [Function] },
  click: [Function],
  sendKeys: [Function],
  getTagName: [Function],
  getCssValue: [Function],
  getAttribute: [Function],
  getText: [Function],
  getSize: [Function],
  getLocation: [Function],
  isEnabled: [Function],
  isSelected: [Function],
  submit: [Function],
  clear: [Function],
  isDisplayed: [Function],
  getOuterHtml: [Function],
  getInnerHtml: [Function],
  getId: [Function],
  getRawId: [Function] }
@hankduan
Copy link
Contributor

Your particular problem is probably because you're using an old version of protractor. That being said, there are two known issues with Protractor 2.0 as well with browser.pause:
#2044
#1898

@ankitshah2787
Copy link
Author

I am using protractor 2.0 but still getting this issue

@juliemr
Copy link
Member

juliemr commented Oct 1, 2015

Issues @hankduan listed have been addressed.

@juliemr juliemr closed this as completed Oct 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants