I'm using webdriver for acceptance testing. https://codeception.com/docs/03-AcceptanceTests#WebDriver I'm running into a thing where depending on if new features are launched, a popup will sometimes be there to notify the user of the new features. So that popup may or may not be there depending on where we are in the release cycle. Is there a way to say: "If I see , click Close" ?
Is there a way to do an "if I see, then…" with webdriver acceptance testing?
88 Views Asked by Francis Lewis At
2
There are 2 best solutions below
0
iamlordsandro
On
Did you checked out if Cucumber.io and Gherkin syntax works for you? With Gherkin you’ll be able to do everything you want.
Related Questions in SELENIUM-WEBDRIVER
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Fail Upload file in Selenium webdriver using Robot class
- How do I use DataProvider with Apache POI
- I am not able to get Exact frame and not able to select exact element using selenium web drive
- Selenium C#: Store element's position on graph as a variable
- Selenium webdriver for handling dynamic ckeditors
- Easy to use multi browser automation tool for record, parameterize, debug, batch run of suites and results report
- Not able to select option from dropdown box in an android mobile application
- What can cause `UnreachableBrowserException: Could not start a new session`?
- Click on the 'compose' button in gmail inbox page
- python - selenium change frame not working
- How to select value from dropdown and double click on same selected item in selenium webdriver.?
- Selenium Firefox webdriver does not adopt profile
- Cannot assign an inst variable in Switch "--user-data-dir" in Selenium Wedriver Chrome
- Phantomjs fails when Protractor is run with selenium hub
Related Questions in WEBDRIVER
- How to hide iOS Keyboard with Leadfoot / Appium / Webdriver?
- What can cause `UnreachableBrowserException: Could not start a new session`?
- Click on the 'compose' button in gmail inbox page
- how to get a text string from
- How to open webdriver multiple chrome driver in different position of monitor?
- Two empty instances of firefox browser opens testng selenium webdriver
- Selenium Webdriver http.client.BadStatusLine: ' ' error?
- Selenium WebDriver - Unexpected modal dialog Alert
- How to disable Reader View in Firefox using webdriver
- How to select a "Colour" for a field value and scroll parameter value of a field?
- Selenium webdriver: element.clear() not clearing the textbox values sometimes
- Appium waitForElementByName always returns state: pending
- How to exclude some selenium test cases from the package?
- Unable to trace an element by attribute or text
- how to use List<WebElement> webdriver
Related Questions in SELENIUM-CHROMEDRIVER
- Cannot assign an inst variable in Switch "--user-data-dir" in Selenium Wedriver Chrome
- How does Nunit generate TestResult.xml
- driver.switchTo().defaultContent(); returning error when using current version of Chrome
- Open multiple sessions with Selenium-ChromeDriver
- Chrome driver hangs when using user data
- Firefox Selenium test freezes sometimes
- Selenium WebDriver Error on Windows: logging.js not found
- Selenium components for CodedUI does not launch chromedriver.exe
- How to wait for page to load completely using JavaScript in Selenium
- Selenium Webdriver _ issue related to 32bit/64bit server
- Launch Watir/Selenium Chrome driver binary from an arbitrary location
- selenium chromedriver: chrome.exe open the python logging filehandler file
- WebElement to do a google search
- Python Selenium return text, unicode object is not callable
- Setting up Protractor to automatically open and close Selenium
Related Questions in CODECEPTION
- How to override default CURL timeout for Codeception - using Browserstack
- Codeigniter can not mock any object using aspectmock
- How to install custom extension to headless Firefox in Linux?
- Function on helper.php not detected with codeception Laravel
- Codeception set custom html report file name
- how to enable UnitHelper in codeception for unit tests
- How to properly change testing environment vars - Codeception and Laravel 5.1
- Is there a way to use Page and Step objects between multiple projects with namespaces?
- Laravel 5.1 Eloquent isFillable() discrepancy in unit tests
- Testing non OOP PHP
- Empty code coverage
- Codeception/Webdriver: "SocketException: Connection Reset"
- YII2 Codeception - create fixture. [Error] Class 'tests\fixtures\UserFixture' not found
- Codeception $env is not accessible in integrational test after upgading to 2.2.5
- Codeception Cest Mockery
Related Questions in ACCEPTANCE-TESTING
- What's the meaning of page and page.body in Capybara
- Quickly copy big MySQL database for testing
- Where should I put test classes if they ARE the project?
- Visiting multiple links on a page. [codeception]
- change env when acceptance testing laravel app with codeception and selenium
- Check for 404 in codeception
- How to Test View in Winforms
- Ember 2, acceptance testing, websocket pending hangs andThen() wating for pending to finish
- Is Geb(automation testing framework) a good acceptance testing framework?
- How can I simulate a swipe gesture programmatically?
- Should API REST BDD Cucumbers Gherkins include specific details about an API or data
- What is the proper way to test a system using Akka and RabbitMQ?
- Is there a way to do an "if I see, then…" with webdriver acceptance testing?
- Fitnesse in Cruisecontrol.net exec: do not fail the build when tests fail
- Capybara-webkit raises Capybara::Driver::Webkit::WebkitInvalidResponseError
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You didn't say which programming language you are using, but the following in Groovy (Java) checks for an alert/modal popup. You can dismiss it in the method or use the return value in an if statement.
You should be able to adapt it for your language.