我已成功安装php56-php-intl.x86_64,但未启用。
我所做的检查如下所示。
安装了yum list | grep php
php -m | grep intl
php56-php-intl.x86_64看起来已正确安装。
然而
public void fillInForm(){
//Enters all the details
}
// Tried all three of these findBy, I do initalise the elements in the page construtor PageFactory.initElements(this.driver, this);
//@FindBy(id="friend_submit")
//@FindBy(xpath="//input[@type='submit']")
@FindBy(xpath="//div//input[@type='submit']")
private WebElement submitEmailButton;
public void submitForm(){
Assert.assertTrue(submitEmailButton.isDisplayed());
webclientTestHelpers.scrollToElement(submitEmailButton, driver);
// Trying to click using Java script
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("document.getElementById('friend_submit').click();");
System.out.println("WE ARE ON::" + driver.getCurrentUrl()); // Page not moved
System.out.println(submitEmailButton.isDisplayed() + "" + submitEmailButton.isEnabled()); // returns true ture so obviously the button click didn't work
submitEmailButton.click();
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
// Now you can do whatever you need to do with it, for example copy somewhere
try {
FileUtils.copyFile(scrFile, new File("C:\\screenshot\\TOOKASHOT.png")); // THis screenshot displays all the form details are correctly set so clicking the button should have sent the form
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
没有显示任何内容。
我已经重新启动了apache服务器,接下来我该怎么办?
答案 0 :(得分:1)
从您的输出中,PHP 5.6是从 remi-php56 存储库安装的,因此您必须从同一个存储库安装 php-intl (这似乎没有启用),而不是 php56-php-intl ,这是一个不同的并行安装包。
您是否阅读过Wizard instructions?
简而言之
yum install yum-utils
yum-config-manager --enable remi-php56
yum install php-intl
由于remi-php56仅提供PHP 5.6及其扩展,因此如果您使用,可以安全地启用它。更多它将允许获得新的更新(当前是5.6.30,而不是5.6.29)