Use a custom Module base class for WebDriver BiDi
Categories
(Remote Protocol :: WebDriver BiDi, enhancement, P3)
Tracking
(firefox114 fixed)
Tracking | Status | |
---|---|---|
firefox114 | --- | fixed |
People
(Reporter: whimboo, Assigned: victoria.o.ajala, Mentored)
Details
(Whiteboard: [lang=js][webdriver:m7][webdriver:external])
Attachments
(1 file)
It might be helpful to have a custom base class for the MessageHandler's Module
class just dedicated for WebDriver BiDi. Hereby we could add more properties like getting the nodeCache
or the processActor
which should not be done in the MessageHandler's implementation because that's WebDriver related.
We should discuss if that is an option and if yes which other properties and methods might be helpful to have as well.
Reporter | ||
Comment 1•2 years ago
|
||
We agreed on that a dedicated Module base class for WebDriver BiDi would be helpful. We can get started with sub-classing the message manager class and provide access to the processActor
, and additionally a shortcut to the nodeCache
.
The implementation should take place in the remote/webdriver-bidi folder and the file name can be as well stay with Module.sys.jsm
.
Assignee | ||
Comment 2•2 years ago
|
||
Hi, I would be working on this bug @whimboo
Reporter | ||
Comment 3•2 years ago
|
||
Sounds good! Let me know if you have questions. Happy to discuss / explain on Matrix.
Assignee | ||
Comment 4•2 years ago
|
||
Sorry for the delay @whimboo, If I understand you correctly in comment 2
, I would be adding a Module base class for WebDriver BiDi. Could you elaborate on that for me?
Reporter | ||
Comment 5•2 years ago
|
||
Yes, that is correct. This BiDi specific Module class would inherit from the MessageManager module base class as referenced in comment 0. With this addition all the BiDi specific module implementations would then make use of the new class instead.
Assignee | ||
Comment 6•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 7•2 years ago
|
||
Hi @whimboo, I attached a patch to this, I have only created the Module.sys.jsm
file in remote/webdriver-bidi
How do I get a base bidi module working like you mentioned in the comment?
Updated•2 years ago
|
Comment 9•2 years ago
|
||
bugherder |
Reporter | ||
Updated•1 years ago
|
Description
•