草庐IT

webdriver-profile

全部标签

php - 如何在 mac os x lion 上设置/安装 zend 框架? .bash_profile 在哪里设置 zf.sh 的别名?

注意:如果您认为这里不合适,请将此问题移至其他站点伙计们,我正在尝试在我的macbookpro上安装/设置zend框架。我在macosxlion10.7.2上运行MAMPPro2.0.3我得到了zend框架安装说明表http://akrabat.com/.作者说我应该在我的~/.bash_profile中为zf.sh脚本添加别名。但是我的主目录中没有这样的文件,我可以通过“touch.bash_profile”创建一个新文件,但这也不起作用。我还下载了zendstudio试用版并尝试从那里创建一个项目但是当我在浏览器中运行它时它只显示空白页面...知道出了什么问题吗?谁能告诉我如何从z

php - 使用 PHP Selenium 2 Webdriver 检查元素是否存在?

我正在尝试使用Selenium2通过CSS检查页面上的元素是否存在。任何人都有使用PHPSeleniumWebdriver的示例Facebook包装器?我试过下面的代码:if($driver->findElement(WebDriverBy::xpath("image-e4e"))!=0){}但是给我这个错误:Fatalerror:Uncaughtexception'NoSuchElementWebDriverError'withmessage'Unabletolocateelement:{"method":"xpath","selector":"image-e4e"}

用于 Apache 之上实时系统的 PHP Profiler

我在Apache服务器上有一个PHP网站,我想知道是否有工具和其他方法可以对此进行分析以找出代码中的瓶颈。我需要知道的是哪些功能需要很长时间才能处理等。类似于gprof,除了实时apache服务器上的PHP。还有哪些其他方法可以找到PHP系统中的瓶颈。 最佳答案 您可以使用xdebug-安装后您可以触发profilingofrequests以多种方式,您最终会为每个请求提供一个valgrind格式配置文件。将此加载到WinCacheGrind,KCacheGrind或类似的并向下钻取以找到所有时间都花在哪里!

php - 如何使用 php webdriver 让 chrome 与 selenium 一起工作?

Firefox一切正常,但我无法启动chrome。我在linux上,使用phpwebdriver绑定(bind)。require_once"/usr/local/src/selenium/php-webdriver-bindings-0.9.0/phpwebdriver/WebDriver.php";putenv("PATH=".getenv("PATH").':'.'/usr/local/src/selenium/chrome_webdriver/');//Prepareforchrome$webdriver=newWebDriver("localhost","4444");//$w

php - 使用 PHP Selenium Webdriver 单击下拉菜单中的选项?

我正在使用PHPSeleniumWebdriver包装器Facebook.任何人都可以给我一个示例,说明如何从选择下拉菜单中单击或选择一个选项吗?我试过这个:$test=$driver->findElement(WebDriverBy::id('drop1').WebDriverBy::cssSelector("option[value='11']"));$test->‌​click();但它出错了:Message:ObjectofclassWebDriverBycouldnotbeconvertedtostring 最佳答案 应该

Php webdriver - 如何强制新测试使用不同的配置文件?

我正在使用动态创建的Firefox配置文件跨包含多个节点的Selenium网格运行多个测试,如下所示:$firefoxProfile=newFirefoxProfile();$capabilities=DesiredCapabilities::firefox();$capabilities->setCapability(FirefoxDriver::PROFILE,$firefoxProfile);$this->webdriver=RemoteWebDriver::create("http://my.tests.com",$capabilities,5000);但每次集线器选择一个节点

php - Selenium2 火狐 : use the default profile

默认情况下,Selenium2以全新的配置文件启动firefox。我喜欢默认设置,但出于一些充分的理由(访问我的书签、保存的密码、使用我的附加组件等)我想从我的默认配置文件开始。有supposedtobe一个控制它的属性,但我认为文档与源代码不同步,因为据我所知,webdriver.firefox.bin是唯一有效的。例如。开始Selenium:java-jarselenium-server-standalone-2.5.0.jar-Dwebdriver.firefox.bin=not-there有效(即它提示)。但这没有效果:java-jarselenium-server-stand

php-webdriver : wait for browser response after submitting form using click()

除了在我的测试中使用sleep()之外,我想知道是否有人知道在继续我的断言之前显式等待表单提交(POST)完成的更好策略。这是我的测试的一个非常精简的版本,同时使用phpunitphp-webdriver来自Facebook)。functiontest_form_submission(){//setup$web_driver=newWebDriver();$session=$web_driver->session();$session->open('http://example.com/login');//enterdata$session->element('cssselector'

android - Google People API 在 scopes.profile 中出现性别错误

首先,我实际上想从旧方法中获取性别,但它说已经弃用了,我在getGender()时出错;无法识别GoogleSignInAccountacct=result.getSignInAccount();IntentHome=newIntent(this,HomeActivity.class);Home.putExtra("name",acct.getDisplayName());Home.putExtra("email",acct.getEmail());Home.putExtra("URL",acct.getPhotoUrl());Home.putExtra("URL",acct.getG

安卓工作室 : “libpng warning: iCCP: Not recognizing known sRGB profile that has been edited”

我从:升级了gradledependencies{classpath'com.android.tools.build:gradle:1.3.1'}到:dependencies{classpath'com.android.tools.build:gradle:1.4.0-beta3'}但我收到错误:AAPTerr(Facadefor1057495093):E:\android_studio_workspace\P2JN\p2jn\src\main\res\drawable-mdpi\reload_data.png:libpngwarning:iCCP:Notrecognizingknow