I would like to check if the element I retrieved using its id contains the expected text value.
var driver = require('selenium-webdriver');
var By = driver.By;
var elem = this.driver.findElement(By.id('my_id'));
assert.equal(elem.getText(), 'blablabla');
Unfortunately this isn't the way to go:
AssertionError: ManagedPromise {
flow_:
ControlFlow {
propagateUnhandledRejections_: true,
activeQueue_:
TaskQueue {
== 'blablabla'
I can't manage to find an example how to do this simple check.