moveTo() doesn't work on Firefox (any known workaround?)

236 views
Skip to first unread message

Pieraś

unread,
Feb 4, 2020, 6:27:24 AM2/4/20
to NightwatchJs
Hi,

I need to use moveTo() method to force mouseButtonClick() on an element (middle button click).
The problem I notice is that it doesn't work on Firefox, while works on Chrome.

I need to make tests on both browsers. Any idea how to workaround it? I guess the issue is with browser not NW?

Nightwatch 1.3.4
Firefox 72.0.2

Code:
browser
                    .getLocation('xpath'dynamicSelectorfunction (result) {
                        browser.moveTo(nullresult.value.xresult.value.ycallback => {
                            browser.mouseButtonClick(1)
                        })
                    })


Debug:
Running command: moveTo (, 390.5, 310, [Function])
   
Request POST  /session/cbc2eafb-37c8-49ee-aaf9-4a3ca2476163/moveto  
   
{ xoffset: 390.5, yoffset: 310 }
   
Response 405 POST /session/cbc2eafb-37c8-49ee-aaf9-4a3ca2476163/moveto (1ms)
   
{ status: -1, value: 'HTTP method not allowed' }
 
Error while running .moveTo() protocol action: An unknown error has occurred.

I tried also with moveToElement()

Pieraś

unread,
Feb 4, 2020, 7:05:06 AM2/4/20
to NightwatchJs
This also doesn't help

                browser.element('xpath'dynamicSelectorfunction (result) {
                    console.log("Web el. ID: " + result.value[Object.keys(result.value)])
                    browser.moveTo(result.value[Object.keys(result.value)], result.value.xresult.value.yfunction () {
                        browser.mouseButtonClick(2)
                    })
                })


Pieraś

unread,
Feb 4, 2020, 11:17:02 AM2/4/20
to nightw...@googlegroups.com
It looks that change should be made in NW I guess


--
You received this message because you are subscribed to the Google Groups "NightwatchJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nightwatchjs/4626f238-7645-48a9-a47b-36d17c6096d0%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages