Closed gokultw closed 1 month ago
got this error for .text()
method as well.
We run into the same error and I applied a small change to taiko/lib/handlers/domHandler.js that allows the test suite to finish. We changed the getBoxModel function so that it returns default coordinates.
async function getBoxModel(e) {
try {
let result = await dom.getContentQuads({
objectId: isElement(e) ? e.objectId : e,
});
return { model: { border: result.quads[0] } };
} catch (e) {
return {model: { border: [0,0, 0,0, 0,0, 0,0]}};
}
}
I don't know why it happens and for what object and whether it is a bad idea to solve it like this or not. But I can tell that it solves the issue for us.
@saikrishna321, could you please help here?
@zabil is this fixed?
The libraries and browser versions have been upgraded since this issue was reported. Happy to re-open If it's still a problem and there's a proper script to replicate it.
Describe the bug Could not compute content quads error is displayed sometimes when working with exists(0,0)
To Reproduce Below code some time throwing error
Could not compute content quads
Logs
Expected behavior Exists(0,0) should return true or false based on element existence.
Taiko: 1.4.3 OS: MAC Os 12.4 Node.js: v14.19.1 Gauge version: 1.4.3