我正在关注this tutorial
除了this post之外,我遵循了步骤 而不是
def start(self, scheduler, alias):
"""
Called by the scheduler when the scheduler is being started or when the executor is being added to an already
running scheduler.
:param apscheduler.schedulers.base.BaseScheduler scheduler: the scheduler that is starting this executor
:param str|unicode alias: alias of this executor as it was assigned to the scheduler
"""
self._scheduler = scheduler
self._lock = scheduler._create_lock()
self._logger = logging.getLogger('apscheduler.executors.%s' % alias)
我申请了
npm install -g protractor
我成功完成了Step 0 - write a test
npm install -g protractor --no-optional
然而,当我尝试Step 1 - interacting with elements
时expect(browser.getTitle()).toEqual('Super Calculator');
它给出错误:
element(by.model('first')).sendKeys(1);
我可以看到我可以通过测试来访问dom元素:
Using the selenium server at http://localhost:4444/wd/hub
[launcher] Running 1 instances of WebDriver
F
Failures:
1) Protractor Demo App should add one and two
Message:
UnknownError: null
Stacktrace:
UnknownError: null
//... continue stack trace
然后它说,
element(by.model('firstXXX')).sendKeys(1);
上面提到的错误消息可能是什么原因:
NoSuchElementError: No element found using locator: by.model("firstXXX")
也从Message:
UnknownError: null
控制台输出:
webdriver-manager start