Skip to content

ngSe throws an AssertionError on ._fill #10

Open

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

Activity

  1. thisguycodes commented on Nov 18, 2016

    @thisguycodes
    Owner

    Two requests:

    1. can you put your traceback in a code block please?
    2. Are you able to provide an MVP that causes this error?
  2. dvfletcher commented on Nov 18, 2016

    @dvfletcher
    Author

    Updated the traceback. What do you mean by MVP?

  3. thisguycodes commented on Nov 18, 2016

    @thisguycodes
    Owner

    Minimum viable product, so I can reproduce your issue

  4. dvfletcher commented on Nov 18, 2016

    @dvfletcher
    Author

    Unfortunately I cannot :(. It's happening on proprietary ZEFR apps.

  5. thisguycodes commented on Nov 18, 2016

    @thisguycodes
    Owner

    Which is why you reduce the problem example to a simpler one without any proprietary information in it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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