当前位置: 首页>>代码示例>>PHP>>正文


PHP AcceptanceTester::dontSeeElement方法代码示例

本文整理汇总了PHP中AcceptanceTester::dontSeeElement方法的典型用法代码示例。如果您正苦于以下问题:PHP AcceptanceTester::dontSeeElement方法的具体用法?PHP AcceptanceTester::dontSeeElement怎么用?PHP AcceptanceTester::dontSeeElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AcceptanceTester的用法示例。


在下文中一共展示了AcceptanceTester::dontSeeElement方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addnewDocfiles

 /**
  * @depends openDocfiles
  */
 public function addnewDocfiles(AcceptanceTester $I)
 {
     // excel
     $I->attachFile('UploadDocFile[docFile]', 'files/excel.xlsx');
     $I->wait(2);
     $I->click('//a[contains(@title, "Загрузить выбранные файлы")]');
     $I->wait(2);
     $I->seeElement('//td/a[contains(text(),"excel.xlsx")]/preceding::td/span/i[@class="fa fa-file-excel-o"]/preceding::td/button[@title="Удалить"]');
     $I->dontSeeElement('//span[@style="text-decoration: line-through" and text() = "excel.xlsx"]');
     // word
     $I->attachFile('UploadDocFile[docFile]', 'files/word.docx');
     $I->wait(2);
     $I->click('//a[contains(@title, "Загрузить выбранные файлы")]');
     $I->wait(2);
     $I->seeElement('//td/a[contains(text(),"word.docx")]/preceding::td/span/i[@class="fa fa-file-word-o"]/preceding::td/button[@title="Удалить"]');
     $I->dontSeeElement('//span[@style="text-decoration: line-through" and text() = "word.docx"]');
     // jpg
     $I->attachFile('UploadDocFile[docFile]', 'files/jpg.jpg');
     $I->wait(2);
     $I->click('//a[contains(@title, "Загрузить выбранные файлы")]');
     $I->wait(2);
     $I->seeElement('//td/a[contains(text(),"jpg.jpg")]/preceding::td/span/i[@class="fa fa-file-image-o"]/preceding::td/button[@title="Удалить"]');
     $I->dontSeeElement('//span[@style="text-decoration: line-through" and text() = "jpg.jpg"]');
     // png
     $I->attachFile('UploadDocFile[docFile]', 'files/png.png');
     $I->wait(2);
     $I->click('//a[contains(@title, "Загрузить выбранные файлы")]');
     $I->wait(2);
     $I->seeElement('//td/a[contains(text(),"png.png")]/preceding::td/span/i[@class="fa fa-file-image-o"]/preceding::td/button[@title="Удалить"]');
     $I->dontSeeElement('//span[@style="text-decoration: line-through" and text() = "png.png"]');
     //txt
     $I->attachFile('UploadDocFile[docFile]', 'files/text.txt');
     $I->wait(2);
     $I->click('//a[contains(@title, "Загрузить выбранные файлы")]');
     $I->wait(2);
     $I->seeElement('//td/a[contains(text(),"text.txt")]/preceding::td/span/i[@class="fa fa-file-text-o"]/preceding::td/button[@title="Удалить"]');
     $I->dontSeeElement('//span[@style="text-decoration: line-through" and text() = "text.txt"]');
     //unknown
     $I->attachFile('UploadDocFile[docFile]', 'files/unknown.unk');
     $I->wait(2);
     $I->see('Разрешена загрузка файлов только со следующими расширениями: png, jpg, jpeg, tiff, pdf, xls, xlsx, doc, docx, txt.');
     $I->click('//a[contains(@title, "Загрузить выбранные файлы")]');
     $I->wait(2);
 }
开发者ID:vovancho,项目名称:yii2test,代码行数:47,代码来源:SpravDocfilesCest.php

示例2: submitCorrect

 public function submitCorrect(AcceptanceTester $I)
 {
     $I->logInAsANormalUser();
     $I->amOnPage('/challenges?category=' . to_permalink(CI_DEFAULT_CATEGORY_TITLE));
     $I->see(CI_DEFAULT_CHALLENGE_TITLE);
     $I->see(CI_DEFAULT_CHALLENGE_DESCRIPTION);
     $flag_field = '#flag-input-' . CI_DEFAULT_CHALLENGE_ID;
     $I->fillField($flag_field, CI_DEFAULT_CHALLENGE_FLAG);
     $I->click('#flag-submit-' . CI_DEFAULT_CHALLENGE_ID);
     $I->seeInCurrentUrl('status=correct');
     $I->dontSeeElement($flag_field);
 }
开发者ID:aallen,项目名称:mellivora,代码行数:12,代码来源:SubmitFlagCest.php

示例3: contactFormCanBeSubmitted

 public function contactFormCanBeSubmitted(AcceptanceTester $I)
 {
     $I->amGoingTo('submit contact form with correct data');
     $I->fillField('#contactform-name', 'tester');
     $I->fillField('#contactform-email', 'tester@example.com');
     $I->fillField('#contactform-subject', 'test subject');
     $I->fillField('#contactform-body', 'test content');
     $I->fillField('#contactform-verifycode', 'testme');
     $I->click('contact-button');
     $I->wait(2);
     // wait for button to be clicked
     $I->dontSeeElement('#contact-form');
     $I->see('Thank you for contacting us. We will respond to you as soon as possible.');
 }
开发者ID:chizdrel,项目名称:yii2-app-basic,代码行数:14,代码来源:ContactCest.php

示例4:

$I->see('Item updated. Please to see the changes delete the cache');
// See captcha on contact page
$I->amOnPage('/contact.html');
$I->see('Captcha*:');
$I->seeElement('img', ['id' => 'captcha_img_contact']);
$I->seeElement('input', ['id' => 'captcha']);
// Disable captcha
$I->amOnPage('/oc-panel/Config/update/captcha');
$I->fillField('#formorm_config_value', '0');
$I->click('formorm[submit]');
$I->seeElement('.alert.alert-success');
$I->see('Item updated. Please to see the changes delete the cache');
// Don't see captcha on contact page
$I->amOnPage('/contact.html');
$I->dontSee('Captcha*:');
$I->dontSeeElement('img', ['id' => 'captcha_img_contact']);
$I->dontSeeElement('input', ['id' => 'captcha']);
// Enable captcha
$I->amOnPage('/oc-panel/Config/update/captcha');
$I->fillField('#formorm_config_value', '1');
$I->click('formorm[submit]');
$I->seeElement('.alert.alert-success');
$I->see('Item updated. Please to see the changes delete the cache');
// Enable reCaptcha
$I->amOnPage('/oc-panel/Config/update/recaptcha_active');
$I->fillField('#formorm_config_value', '1');
$I->click('formorm[submit]');
$I->seeElement('.alert.alert-success');
$I->see('Item updated. Please to see the changes delete the cache');
// Fill site key
$I->amOnPage('/oc-panel/Config/update/recaptcha_secretkey');
开发者ID:Ryanker,项目名称:open-eshop,代码行数:31,代码来源:11-CaptchaCept.php

示例5:

// Delete BLOG
$I->amOnPage('/oc-panel/Blog/');
$I->see('Blog Post Title');
$I->click('.btn.btn-danger.index-delete');
sleep(1);
$I->amOnPage('/oc-panel/Blog/');
$I->dontSee('Blog Post Title');
$I->amOnPage('/blog');
$I->dontSee('Blog Post Title');
$I->amOnPage('/oc-panel/Config/update/blog');
$I->fillField("#formorm_config_value", '0');
$I->click("//button[@type='submit']");
//click save
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/');
$I->dontSeeElement('a', ['href' => 'http://reoc.lo/blog']);
$I->amOnPage('/oc-panel/Config/update/blog_disqus');
$I->fillField('#formorm_config_value', '');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
// Disqus for FAQ
$I->amOnPage('/oc-panel/Config/update/faq_disqus');
$I->fillField('#formorm_config_value', 'testoc');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->wantTo('activate faq');
$I->amOnPage('/oc-panel/Config/update/faq');
$I->fillField("#formorm_config_value", '1');
$I->click("//button[@type='submit']");
//click save
$I->see('Item updated. Please to see the changes delete the cache');
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:31,代码来源:CommentsConfigurationCept.php

示例6:

$I->seeElement('.alert.alert-success');
$I->see('Category created');
// READ
$I->amOnPage('/');
$I->see('themes', 'a');
$I->amOnPage('/themes');
$I->see('Themes', 'h1');
$I->see('Premium themes and templates for Open Classifieds.', 'p');
// UPDATE
$I->amOnPage('/oc-panel/Category');
$I->click('.btn.btn-xs.btn-primary.pull-right');
$I->see('Update Category', 'h1');
$I->fillField('#formorm_name', 'Themes-updated');
$I->fillField('#formorm_seoname', 'themes-updated');
$I->fillField('#formorm_description', 'Premium themes and templates for Open Classifieds. Themes, themes and themes!');
$I->click('formorm[submit]');
$I->seeElement('.alert.alert-success');
$I->see('Item updated');
$I->amOnPage('/');
$I->see('themes-updated', 'a');
$I->amOnPage('/themes-updated');
$I->see('Themes-updated', 'h1');
$I->see('Premium themes and templates for Open Classifieds. Themes, themes and themes!', 'p');
// DELETE
$I->amOnPage('/oc-panel/Category');
$I->click('.btn.btn-xs.btn-danger.pull-right.index-delete.index-delete-inline');
$I->amOnPage('/oc-panel/Category');
$I->dontSeeElement('.btn.btn-xs.btn-danger.pull-right.index-delete.index-delete-inline');
$I->dontSeeElement('.btn.btn-xs.btn-primary.pull-right');
$I->amOnPage('/oc-panel/auth/logout');
$I->see('Login', 'a');
开发者ID:johnulist,项目名称:open-eshop,代码行数:31,代码来源:02-CRUDCategoryCept.php

示例7: AcceptanceTester

<?php

$I = new AcceptanceTester($scenario);
$I->wantTo('add a new address field with custom options.');
$I->login('tester', 'test');
$I->amOnPage('/wp/wp-admin/post.php?post=4&action=edit');
$I->click('+ Add Field');
$I->fillField('.field-label', 'acf address custom test field');
$I->selectOption('form select.field-type', 'address');
$I->wait(2);
$I->seeElement('.acf-address-1-row');
$I->wantTo('make changes to the default address settings.');
// has the form ${obj.id}-${widgetCount}
$I->uncheckOption('#street2-1');
$I->wait(1);
// has the form ${obj.id}-li-movable-${widgetCount}
$I->dontSeeElement('#street2-li-movable-1');
$I->click('#publish');
$I->see('Field group updated.');
$I->wantTo('make sure my changes were persisted.');
$I->dontSeeCheckboxIsChecked('#street2-1');
$I->dontSeeElement('#street2-li-movable-1');
开发者ID:indianabenny,项目名称:acf-field-address,代码行数:22,代码来源:CreateNewCustomFieldCept.php

示例8:

$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/oc-panel/Config/update/to_top');
$I->fillField('#formorm_config_value', '1');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
// Read
$I->amOnPage('/oc-panel/myads');
$I->seeElement('.glyphicon.glyphicon-circle-arrow-up');
$I->see('Featured', 'a');
$I->amOnPage('/jobs/some-nice-title-here.html');
$I->see('Your Advertisement can go on top again! For only', 'p');
$I->see('Go Top!', 'a');
$I->see('Your Advertisement can go to featured! For only', 'p');
$I->see('Go Featured!', 'a');
// Back to default
$I->amOnPage('/oc-panel/Config/update/to_featured');
$I->fillField('#formorm_config_value', '0');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/oc-panel/Config/update/to_top');
$I->fillField('#formorm_config_value', '0');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/oc-panel/myads');
$I->dontSeeElement('.glyphicon.glyphicon-circle-arrow-up');
$I->dontSee('Featured', 'a');
$I->amOnPage('/jobs/some-nice-title-here.html');
$I->dontSee('Your Advertisement can go on top again! For only', 'p');
$I->dontSee('Go Top!', 'a');
$I->dontSee('Your Advertisement can go to featured! For only', 'p');
$I->dontSee('Go Featured!', 'a');
开发者ID:Chinese1904,项目名称:openclassifieds2,代码行数:31,代码来源:FeaturedAdsBringOnTopCept.php

示例9: AcceptanceTester

<?php

// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new AcceptanceTester($scenario);
$I->wantTo('ensure backend access works');
$I->amOnPage('/backend');
$I->dontSeeElement('.small-box');
$I->amOnPage('/prototype/html');
$I->dontSee('Htmls', 'h1');
$I->amOnPage('/prototype/less');
$I->dontSee('Lesses', 'h1');
$I->amOnPage('/settings');
$I->dontSee('Settings', 'h1');
$loginPage = LoginPage::openBy($I);
$loginPage->login('admin', 'admin');
$I->amOnPage('/backend');
$I->seeElement('.small-box');
$I->amOnPage('/prototype/html');
$I->see('Htmls', 'h1');
$I->amOnPage('/prototype/less');
$I->see('Lesses', 'h1');
$I->amOnPage('/settings');
$I->see('Settings', 'h1');
开发者ID:phundament,项目名称:app,代码行数:24,代码来源:BackendAccessCept.php

示例10:

$I->wantTo('change configurations and see changes on frontend');
$I->amOnPage('/oc-panel/auth/login');
$I->fillField('email', 'admin@reoc.lo');
$I->fillField('password', '1234');
$I->click('auth_redirect');
$I->amOnPage('/oc-panel/');
$I->see('welcome admin');
// Address
$I->amOnPage('/oc-panel/Config/update/address');
$I->fillField('#formorm_config_value', '0');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
//Read
$I->amOnPage('/publish-new.html');
$I->dontSee('Address', 'label');
$I->dontSeeElement('input', ['name' => 'address']);
// Back to default
$I->amOnPage('/oc-panel/Config/update/address');
$I->fillField('#formorm_config_value', '1');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/publish-new.html');
$I->see('Address', 'label');
$I->seeElement('input', ['name' => 'address']);
// Phone
$I->amOnPage('/oc-panel/Config/update/phone');
$I->fillField('#formorm_config_value', '0');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
//Read
$I->amOnPage('/publish-new.html');
开发者ID:kleitz,项目名称:openclassifieds2,代码行数:31,代码来源:AdvertisementFieldsCept.php

示例11:

$I->amOnPage('/oc-panel/auth/login');
$I->fillField('email', 'gazzasdasd@reoc.lo');
$I->fillField('password', '1234');
$I->click('auth_redirect');
$I->amOnPage('/publish-new.html');
$I->seeElement('.alert.alert-info');
$I->see('Please, choose a plan first');
$I->dontSee('Free plan', 'h3');
// Login as admin - disable Memberships
$I->amOnPage('/');
$I->click('Logout');
$I->login_admin();
$I->amOnPage('/oc-panel/Config/update/subscriptions');
$I->fillField('#formorm_config_value', '0');
$I->click('formorm[submit]');
$I->see('Item updated. Please to see the changes delete the cache');
// Check as a user if memberships are disabled.
$I->amOnPage('/');
$I->click('Logout');
$I->amOnPage('/oc-panel/auth/login');
$I->fillField('email', 'gazzasdasd@reoc.lo');
$I->fillField('password', '1234');
$I->click('auth_redirect');
$I->amOnPage('/publish-new.html');
$I->dontSeeElement('.alert.alert-info');
$I->dontSee('Please, choose a plan first');
// Login as admin - switch to default theme
$I->amOnPage('/');
$I->click('Logout');
$I->login_admin();
$I->{$I}->activate_theme('default');
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:31,代码来源:MembershipPlansCept.php

示例12:

$I->fillField('tooltip', 'telephone');
$I->selectOption('form select[name="type"]', 'integer');
$I->checkOption('required');
$I->checkOption('searchable');
$I->checkOption('show_register');
$I->checkOption('show_profile');
$I->click('button[type="submit"]');
$I->see('Field telephone created');
$I->seeElement('.drag-item');
// delete all cache
$I->amOnPage('/oc-panel/tools/cache?force=1');
$I->see('All cache deleted');
// activate a premium theme to see the custom field!
$I->activate_theme('splash');
// delete all cache
$I->amOnPage('/oc-panel/tools/cache?force=1');
$I->see('All cache deleted');
// Not able to see my custom field from the test
// but it's displayed on http://reoc.lo/publish-new.html (Maybe an issue with PhpBrowser)
$I->amOnPage('/');
$I->click('Logout');
$I->amOnPage('/oc-panel/auth/register');
$I->seeElement('input', ['id' => 'cf_telephone']);
$I->login_admin();
$I->amOnPage('oc-panel/userfields');
$I->seeElement('.drag-item');
$I->amOnPage('http://reoc.lo/oc-panel/userfields/delete/telephone');
$I->amOnPage('oc-panel/userfields');
$I->dontSeeElement('.drag-item');
$I->dontSeeElement('.glyphicon.glyphicon-trash');
$I->{$I}->activate_theme('default');
开发者ID:kotsios5,项目名称:openclassifieds2,代码行数:31,代码来源:UserCustomFieldsCept.php

示例13:

$I->amOnPage('/oc-panel/');
$I->see('welcome admin');
$I->amOnPage('/oc-panel/Config/update/recaptcha_active');
$I->fillField('#formorm_config_value', '1');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/oc-panel/Config/update/recaptcha_secretkey');
$I->fillField('#formorm_config_value', '6LcN3AATAAAAAAJM-ef2dL1zBMyUZpATTIr0ubln');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/oc-panel/Config/update/recaptcha_sitekey');
$I->fillField('#formorm_config_value', '6LcN3AATAAAAAPpqImSRX56OBFEzYKnxdzQzLN6L');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/publish-new.html');
$I->seeElement('#recaptcha1');
$I->amOnPage('/oc-panel/Config/update/recaptcha_active');
$I->fillField('#formorm_config_value', '0');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/oc-panel/Config/update/recaptcha_secretkey');
$I->fillField('#formorm_config_value', '');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/oc-panel/Config/update/recaptcha_sitekey');
$I->fillField('#formorm_config_value', '');
$I->click('button[type="submit"]');
$I->see('Item updated. Please to see the changes delete the cache');
$I->amOnPage('/publish-new.html');
$I->dontSeeElement('#recaptcha1');
开发者ID:ThomWensink,项目名称:openclassifieds2,代码行数:30,代码来源:ReCaptchaCept.php

示例14: date

 public function systeminfo_ログ表示(\AcceptanceTester $I)
 {
     $I->wantTo('EA0806-UC01-T01 ログ表示');
     // 表示
     $config = Fixtures::get('config');
     $I->amOnPage('/' . $config['admin_route'] . '/setting/system/log');
     $I->see('システム設定EC-CUBE ログ表示', '#main .page-header');
     $log = $I->grabValueFrom(['id' => 'admin_system_log_files']);
     $expect = "site_" . date('Y-m-d') . ".log";
     $I->assertEquals($expect, $log);
     $I->fillField(['id' => 'line-max'], '1');
     $I->click(['css' => '#form1 button']);
     $I->dontSeeElement(['css' => '#main .container-fluid .box table tbody tr:nth-child(2)']);
 }
开发者ID:nanasess,项目名称:eccube-codeception,代码行数:14,代码来源:EA08SysteminfoCest.php

示例15: AcceptanceTester

<?php

$I = new AcceptanceTester($scenario);
$I->wantTo('Add a new Image');
$I->amOnPage('/login');
$I->fillField('email', 'mbilal@eplanetcom.com');
$I->fillField("password", "123456");
$I->click(['class' => 'btn-raised']);
$I->seeLink('Logout', '/logout');
$I->click('Images');
$I->seeInCurrentUrl('/images');
$I->click(['class' => 'btn-primary']);
$I->see('Upload new images');
$I->selectOption('image_category', '2');
$I->attachFile('input[type="file"]', 'banner.jpg');
$I->click('Start upload');
$I->dontSeeElement(['class' => 'btn-danger delete']);
/* $I->click('Images');
$I->seeInCurrentUrl('/images');
$I->click('Logout');
$I->see('Login'); */
开发者ID:nrkhan,项目名称:automation,代码行数:21,代码来源:AddImagesCept.php


注:本文中的AcceptanceTester::dontSeeElement方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。