Comments (2)
You would have to install at compile phase so version is available at converge phase.
You can force this be adding run_action
, e.g.,
package "google-chrome-#{node['chrome']['track']}" do
action :nothing
end.run_action(:install)
Now version can run against installed chrome in converge phase, e.g.,
def chrome_version
case node['platform']
when 'windows'
chrome_windows_version
when 'mac_os_x'
chrome_linux_version('"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version')
else
chrome_linux_version('google-chrome --version')
end
end
Note the library here isn't in a module due to issues with the first release of Chef 12. But if you use modules like in the mozilla_firefox cookbook, then you will need to make that module available, e.g.,
Chef::Provider.send(:include, MozillaFirefox)
Chef::Recipe.send(:include, MozillaFirefox)
Chef::Resource.send(:include, MozillaFirefox)
from chef-selenium.
Closing due to inactivity
from chef-selenium.
Related Issues (20)
- selenium_node provider depends on windows HOT 1
- Rubyzip failure to allocate memory issue on Windows Server 2008 HOT 3
- chromedriver version does not update HOT 2
- org.openqa.selenium.WebDriverException: chrome not reachable on CentOS 7.0/Ubuntu 14.04 HOT 4
- Drivers not copied to /selenium/drivers/ folders on Windows 7 HOT 5
- Errror provisioning chromedriver on centos7 HOT 3
- Release 3.0.0 HOT 1
- selenium iedriver and chromedriver
- Unable to set hub and node recipe attributes
- Commands on path are not available after running windows_path
- Firefox on Ubuntu fails to start HOT 1
- WARN: Cannot create resource windows_service with more than one argument.
- The init scripts are a bit fragile, as they check the pid file but not the actual process HOT 5
- Cannot create directory due to insufficient permissions
- recipes are not idempotent HOT 6
- Error executing action `run` on resource 'execute[reload org.seleniumhq.selenium_hub]'
- Support for Selenium 3 HOT 1
- Problem with Java executable location
- Allow for selenium unix username to be passed as an attribute
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chef-selenium.