Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div>
- <a>
- <div>
- <div>
- <span>
- <i><img src="res/someImg.png"></i>
- </span>
- </div>
- <div>
- ...
- </div>
- <div>
- ...
- </div>
- </div>
- </a>
- </div>
- it('should render an icon in agent list', function () {
- var row = element.all(by.repeater('row in renderedRows')).get(3);
- expect(row).not.toEqual(null); //pass
- expect(row.element(by.css('img')).getAttribute('src').getText()).toMatch(/someImg.png/);//fail with null
- expect(row.element(by.css('span')).outerHTML).toBe('<i><img src="res/someImg.png"></i>'); //fails
- expect(row.element(by.css('i')).innerHTML).toBe('<img src="res/someImg.png">'); //fails
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement