You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working to get Lunar Lander (old Flash game) working in Ruffle. It works fine manually, but I need to automate pressing the "Start" button using Selenium. Chrome Dev tools can't identify the Start button. It simply reports as part of the "body" element. If I right click on it manually, the Ruffle popup menu appears. Image of Start screen uploaded.
I've also tried using Selenium to scan the page and report Button ID's, but that didn't work.
Any suggestions as to how to identify the Start button, use some key combination, or other approach to push it? Totally stumped
thanks for your help!!
dave
The text was updated successfully, but these errors were encountered:
Ruffle does not produce interactive HTML, instead it draws the content on a canvas and provides interactive elements (e.g. buttons) in its own way. The only solution you can employ is to click the button based on its x,y coordinates on the canvas.
You can see how Ruffle does it by picking the element in Dev Tools—press Ctrl+Shift+C and select the Flash content on the page. You'll see a shadow root (Ruffle player) and a canvas inside which draws the content.
Another option is to use JPEXS Decompiler to create a modified version of the game that automatically starts. That would probably involve copying whatever code runs when the button is pressed and inserting that code elsewhere in the game. I've done modifications like this before and they usually took me a few hours of work.
Thanks for the suggestion! Sounds like a bit more surgery than I'm capable of doing. I did take a look at JPEXS, and will see if I can go down that road....
Working to get Lunar Lander (old Flash game) working in Ruffle. It works fine manually, but I need to automate pressing the "Start" button using Selenium. Chrome Dev tools can't identify the Start button. It simply reports as part of the "body" element. If I right click on it manually, the Ruffle popup menu appears. Image of Start screen uploaded.
I've also tried using Selenium to scan the page and report Button ID's, but that didn't work.
Any suggestions as to how to identify the Start button, use some key combination, or other approach to push it? Totally stumped
thanks for your help!!
dave
The text was updated successfully, but these errors were encountered: