driver = webdriver.PhantomJS()
driver.get(DEMO_PAGE)
demo_div = driver.find_element_by_id("demo-div")
print demo_div.get_attribute('innerHTML')
print driver.execute_script("return arguments[0].innerHTML", demo_div)
print demo_div.get_attribute('textContent')
print driver.execute_script("return arguments[0].textContent", demo_div)
driver.quit
Bundler找不到gem“railties”的兼容版本: 在快照(Gemfile.lock)中: 铁路(= 5.1.0)
在Gemfile中: railties(〜> 5.1.0)x64-mingw32
C:\Users\Prabal\Desktop\rails-club>rails generate devise member
运行devise (~> 4.2.1) x64-mingw32 was resolved to 4.2.1, which depends on
railties (< 5.1, >= 4.1.0) x64-mingw32
devise (~> 4.2.1) x64-mingw32 was resolved to 4.2.1, which depends on
responders x64-mingw32 was resolved to 2.3.0, which depends on
railties (< 5.1, >= 4.2.0) x64-mingw32
将仅使用从头开始重建快照
Gemfile中的宝石,可以解决冲突。
我是ROR的新手,请帮助我如何继续下一步
答案 0 :(得分:3)
您似乎正在尝试将devise v4.2.1
gem与rails v5.1.0
一起使用。目前无法执行此操作,因为devise v4.2.1
railties = <5.1, >=4.1.0
rails v5.1.0
railties = 5.1.0
rails v5.0.2
devise
/usr/local/opt/libxml2/include
。最终结果是您遇到的版本冲突。我建议您降级到Select recursive->Yes
,以便能够在您的应用上使用import { NavController } from 'ionic-angular';
import { ToastController } from 'ionic-angular';
import { File } from '@ionic-native/file';
import { Diagnostic } from '@ionic-native/Diagnostic';
import { CameraPreview } from 'ionic-native'
import { CameraPreviewOptions, CameraPreviewDimensions } from '@ionic-native/camera-preview';
declare var cordova: any;
constructor(public navCtrl: NavController, public toastCtrl: ToastController) {
// this.checkPermissions();
}
fileName = fileName.split("/").pop();
File.moveFile(currentPath, fileName, externalStoragePath, fileName).then(_ => {
this.toastCtrl.create(
。一旦你这样做,就不会有任何版本冲突。