[MGNLTEST-291] Selenide: No webdriver is bound to current thread. You need to call open(url) first. Created: 28/Jul/22  Updated: 18/Aug/22  Resolved: 10/Aug/22

Status: Closed
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: 1.3.5

Type: Task Priority: Neutral
Reporter: Federico Grilli Assignee: Christoph Meier
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 1.25d
Original Estimate: Not Specified

Attachments: File PublicationWorkflowFunctionalTests_publishSingleNestedPage.mp4    
Issue Links:
relation
is related to MGNLTEST-290 Fix the couple of tests that were dis... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:
Team: Foundation

 Description   

As soon as dx-core was updated to latest TF 1.3-SNAPSHOT publication workflow tests started to fail, apparently getting stuck when logging out and try to login again with a different user at LoginPage#exists (see PublicationWorkflowFunctionalTests_publishSingleNestedPage.mp4).
Debugging showed that the following Selenide error was thrown (but not displayed in logs)

No webdriver is bound to current thread. You need to call open(url) first.

Reverting the changes done with this commit gets rid of the issue but of course it's best if we figure out how to do it without using WebDriver directly.



 Comments   
Comment by Christoph Meier [ 02/Aug/22 ]

F.T.R. for fgrilli

No webdriver is bound to current thread. You need to call open(url) first.

Is thrown in the following case:

  • when PublicationWorkflowFunctionalTests#changeToUser is called - that one using an await().atMost.until.blala construction
  • plus when PageObjects#assertExists is also called

This is slightly weird.
You'll see that I have "removed" the PageObjects#assertExists in PageObjects#LoginPage ...
... which "resolves" the issue.

Generated at Mon Feb 12 07:47:25 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.