Closed
Bug 639546
Opened 15 years ago
Closed 12 years ago
Create a framework for sending native events
Categories
(Testing Graveyard :: Mozmill, enhancement)
Testing Graveyard
Mozmill
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: ahal, Unassigned)
Details
(Whiteboard: [mozmill-2.0-][mozmill-next?])
We want to be able to send os level events from within Mozmill which will allow us to do things such as dragging and dropping a file onto Firefox.
We want to take advantage of functions of a higher level than straight mouse click and move events (e.g use Gtk in Linux instead of X)
| Reporter | ||
Updated•15 years ago
|
Assignee: nobody → ahalberstadt
Status: NEW → ASSIGNED
Whiteboard: [mozmill-2.0?][mozmill-next?]
Comment 1•15 years ago
|
||
Anything we want to have a look at the webdriver implementation? Has there been made a final decision yet?
| Reporter | ||
Comment 2•15 years ago
|
||
I worked on this a fair amount last summer (using the webdriver code) so I plan to start there and modify things as I go. I actually had some basic events working and integrated with Mozmill already (only keypress and click in linux). It will take some work to get that merged into master and working properly in Minefield again though.
Comment 3•15 years ago
|
||
Andrew, we now have a good contact to Simon and Eran, who both are working on that code for webdriver.
| Reporter | ||
Comment 4•15 years ago
|
||
(In reply to comment #3)
> Andrew, we now have a good contact to Simon and Eran, who both are working on
> that code for webdriver.
Yep, I actually met up with them a couple times last summer ;)
| Reporter | ||
Comment 5•14 years ago
|
||
So Clint and I had decided that passing the absolute coordinates of the element to the os event system was the best way to go. I figured out (pretty sure I figured out) how to calculate this, but I'm unable to get Firefox to receive a click event.
I'm pretty sure that the reason is because we're sending the event to the GDK_WINDOW_ROOT instead of the Firefox window handle. In other words, I don't think you can just send a click event to a certain part of the screen and expect the application with focus to get that event (you have to explicitly pass the window handle in).
In Firefox 4 only the top level window has an associated window handle. Unfortunately ctypes can only call into C and to get this window handle you need XPCOM (C++). We'll have to either:
1) Figure out how to get this in javascript and pass it through ctypes (don't think this is possible, but may be wrong)
2) Scrap ctypes and use an XPCOM component
3) Create a shim library that gets called by ctypes and calls into C++
I would imagine that 3 would be the easiest.
Severity: normal → enhancement
| Reporter | ||
Comment 6•14 years ago
|
||
So 1) and 3) are impossible due to ctypes inability to pass through arbitrary objects.
I'm currently trying 4) Get window handle from the gdk side.
| Reporter | ||
Comment 7•14 years ago
|
||
For reference development of this bug is ongoing here: https://github.com/mozilla/pow-wow
I'm unassigning from myself for now, but feel free to ping me with any questions.
Assignee: halbersa → nobody
Status: ASSIGNED → NEW
Updated•14 years ago
|
Whiteboard: [mozmill-next?] → [mozmill-2.0-][mozmill-next?]
| Reporter | ||
Comment 8•12 years ago
|
||
Found in triage.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
| Assignee | ||
Updated•9 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•