Worked on browserextension and modified the needed bits to make it work
Known issues / Work in progress:
-
.onchange()
doesn't work anymore. Solution:
// wait for condition
await relaxo.wFC(()=>{return document.getElementById(id).getAttribute("onchange")!== "";}); // wait till method is defined
let event = new Event('change'); // initialize event to trigger the event
editfeld.dispatchEvent(event); // dispatch it to the element
- JQuery is not accessible, because we run in another context. Migrate all the remaining JQuery stuff (youmightnotneedjquery)
- Migrate the methods
agressoAddKilometer
andagressoAddParkkosten
because they use jquery selectors
- Migrate the methods
Edited by Matthias Fabinski