astares / pharo-chrome Goto Github PK
View Code? Open in Web Editor NEWPharo support for Google Chrome
Pharo support for Google Chrome
upgrade proposal to close the browser (headless or not):
you can add
ChromeTabPage>>>closeBrowser
^self sendMessage: {
'method' -> 'Browser.close'
} asDictionary
#openForRemoteDebugging
does self debugOn
, but debugOn seems to be the default. Later there is 2 seconds wait
without explanation. Why 2 seconds specifically?
There are 3 old legacy methods with GT inspector extensions.
Should be removed as we now do Spec2 which is more easy and allows to reuse the extension presenters
Hi,
When calling
browser closeAndExit.
a debug opens with an error : Does not understand #sigterm message
(i use the latest version with Pharo 11 and Pharo-OS-Windows)
i've a workaround in my environment... shall be generalized with Linux and MacOs version :
GoogleChrome>>>closeAndExit
"Ask the browser to exit"
chromeProcess ifNotNil: [
chromeProcess process terminateProcessWithExitCode: 0.
chromeProcess := nil ]
and:
Win32ChromePlatform>>>openChromeWith: arguments
| executableLocation cmd |
executableLocation := '"',self defaultExecutableLocation,'"'.
cmd := arguments ifEmpty: [ executableLocation ]
ifNotEmpty: [ executableLocation,' ',(self stringFromArguments: arguments) ].
^(self class environment at: #WinProcess) createProcess: cmd.
It seems like NeoJSON would be a better choice. STON class mapping seems hardcoded for the use case of materializing previously-serialized Smalltalk objects
I'd like to evaluate javascript on a node e.g. (pseudocode) aNode.click()
or aNode evaluate: 'click()'
?
Hi and thanks for this project. I have been using it for the MiniDocs package, which extends documentation capabilities of Lepiter with light formats, including Mardeep preview and exportation.
A single line could be added to UnixChromePlatform class >>defaultExecutableLocations, so Pharo-Chrome would detect installations of Chromium in Unix, for those of us that prefer it over Chrome.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.