[Pkg-giraffe-discuss] autopkgtest in kopano-webapp

Carsten Schoenert c.schoenert at t-online.de
Wed Dec 26 19:23:04 GMT 2018


Am 26.12.18 um 19:44 schrieb Guido Günther:
> My former line was slightly wrong. What I wanted to do is ignore the
> passed in parameter:
> 
>     t = self
>     element = WebDriverWait(self.driver, 40).until(lambda x: t.find_element_by_("class_name", "icon_createEmailMessage"))
> 
> which should be the same as:
> 
>     element = WebDriverWait(self.driver, 40).until(lambda x: self.find_element_by_("class_name", "icon_createEmailMessage"))

Yes.

And one more yes, we get closer if I use this with this small change.

> ======================================================================
> FAIL: test_login (test_webapp.TestWebApp)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/tmp/autopkgtest.cEOg0f/build.tRZ/src/debian/tests/test_webapp.py", line 64, in test_login
>     element = WebDriverWait(self.driver, 40).until(lambda x: t.find_element_by_("class_name", "icon_createEmailMessage"))
>   File "/usr/lib/python2.7/dist-packages/selenium/webdriver/support/wait.py", line 71, in until
>     value = method(self._driver)
>   File "/tmp/autopkgtest.cEOg0f/build.tRZ/src/debian/tests/test_webapp.py", line 64, in <lambda>
>     element = WebDriverWait(self.driver, 40).until(lambda x: t.find_element_by_("class_name", "icon_createEmailMessage"))
>   File "/tmp/autopkgtest.cEOg0f/build.tRZ/src/debian/tests/test_webapp.py", line 44, in find_element_by_
>     (name, type))
>   File "/tmp/autopkgtest.cEOg0f/build.tRZ/src/debian/tests/test_webapp.py", line 36, in fail_with_screenshot
>     self.fail("%s. Screenshot is at %s" % (msg, screenshot_name))
> AssertionError: No element icon_createEmailMessage of type class_name found. Screenshot is at screenshot.1545851647.27.png

The screenshot shows then the 'Welcome to Kopano Webapp' banner which we
could simply accept by clicking on 'Continue'.

I'll take a closer look at this tomorrow I guess. Thanks for get this
(correctly) working until here!

-- 
Regards
Carsten Schoenert



More information about the Pkg-giraffe-discuss mailing list