Skip to content

ngSe throws an AssertionError on ._fill #10

@dvfletcher

Description

@dvfletcher

Repro Steps:

  • Run behave automation using ngSe.
  • Attempt to fill an element with text

Expected Results:
ngSe is able to fill the element with text

Actual Results:
The step fails and the following Assertion Error is thrown:

 Traceback (most recent call last):
        File "/Users/dan.fletcher/.virtualenvs/AMG3/lib/python3.4/site-packages/behave/model.py", line 1456, in run
          match.run(runner.context)
        File "/Users/dan.fletcher/.virtualenvs/AMG3/lib/python3.4/site-packages/behave/model.py", line 1903, in run
          self.func(context, *args, **kwargs)
        File "tests/functional/features/steps/common_steps.py", line 271, in fill_element_within_repeated_div
          browser.fill(locator, text, By.XPATH)
        File "/Users/dan.fletcher/.virtualenvs/AMG3/lib/python3.4/site-packages/ngSe/browser.py", line 205, in fill
          return self._fill(element, text, by, check, check_against, check_attribute, empty)
        File "/Users/dan.fletcher/.virtualenvs/AMG3/lib/python3.4/site-packages/ngSe/browser.py", line 189, in _fill
          assert check_against in element.get_attribute(check_attribute)
      AssertionError

Notes:

  • This is an inconsistent repro since different front end elements have different attributes.
  • ngSe used to work fine filling all types of elements with text

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions