Closed tv2022 closed 1 year ago
@whimboo Can you please check this issue?
First w3c
is not a valid capability for moz:firefoxOptions
, and second we do not support a non-standard handling anymore. Nevertheless mouse action related methods should not fail. So please attach a trace-level log from geckodriver.
@whimboo true without w3c when I try to do drag and drop action or any other mouse actions it throws the below error. It works fine with Selenium 4.6.0 but not with selenium 3.6.0
const {Builder, By} = require('selenium-webdriver');
const capabilities = {
'browserName': 'firefox',
'moz:firefoxOptions': {
args: [ '--ignore-certificate-errors' ]
}
}
const driver = await new Builder().withCapabilities(capabilities).build();
await driver.get('https://material.angular.io/cdk/drag-drop/overview');
await driver.manage().window().maximize();
await driver.sleep(5000);
let src = await driver.findElement(By.xpath(`.//*[text()='Drag&Drop connected sorting']/../..//*[text()='Get to work']`))
let trg = await driver.findElement(By.xpath(`.//*[text()='Drag&Drop connected sorting']/../..//*[text()='Check e-mail']`));
console.log(await src.getText());
await driver
.actions({async: true})
.dragAndDrop(src, trg)
.perform();
I tried this on FF 106.0.5 as well with the latest geckodriver 0.32.0 with Selenium 3.6.0 and it failed with the below error.
error properties: Object({ remoteStacktrace: '' })
WebDriverError: HTTP method not allowed
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at Promise.then (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at Promise.then (<anonymous>)
at Promise.then (<anonymous>)
From: Task: mouseMove
at Array.map (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at Promise.then (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at Promise.then (<anonymous>)
Trace log:
@whimboo true without w3c when I try to do drag and drop action or any other mouse actions it throws the below error. It works fine with Selenium 4.6.0 but not with selenium 3.6.0
Is there any reason why you require Selenium 3.6 still? Why cannot you switch to 4.6.0? If it fails with an older Selenium release it seems to be more an issue on that side and not ours and I doubt that this release is still supported. So consider upgrading?
I tried this on FF 106.0.5 as well with the latest geckodriver 0.32.0 with Selenium 3.6.0 and it failed with the below error.
error properties: Object({ remoteStacktrace: '' }) WebDriverError: HTTP method not allowed
Again, this would require a trace log given that it's not clear what HTTP method
this is about.
Instead of taking screenshots you most likely want to add real assertions to the code so that it's clear what is failing.
Nevertheless I assume that the issue with dragging is identical to what has been reported on issue #1450. Can you please verify? Thanks.
No further response from reporter. Closing the issue.
System
Testcase
Unable to start geckodriver session with w3c:false in the capabilities. Mouse operation like mouse move and drag and drop doesn't work without w3c:false.
Capabilities:
Stacktrace
Trace-level log
NA