In this short article we will see how can we accept alerts by using Protractor.
Because browser alerts represents non-angular code, we have to ignore angular synchronization first. Here is the code for accepting the alert. This was tested with Chromedriver.
Happy testing and... make it green, becomes a dream :).
Labels
selenium
(20)
microsoft tools
(9)
continuous integration
(8)
performance
(7)
protractor
(7)
Applitools
(2)
Postman
(2)
agile
(2)
browser extensions
(2)
conferences
(2)
istqb
(2)
project management
(2)
specflow
(2)
autoit
(1)
browserstack
(1)
cypress
(1)
qa
(1)
sikuli
(1)
static testing
(1)
testing events
(1)
Tuesday, August 16, 2016
Tuesday, August 9, 2016
Protractor - Double click on row based on cell text and column name
Working with Protractor promises can be, sometimes difficult. The same is true in the case we want to work with grids.
After searching for a while a solution for double clicking on a grid row, base on the cell text and the column name, I found one. Here is the code for it.
In this example you can double click or click a row based on the cell text and column name.
headers() is a separate function that identifies all column headers in the grid.
readGridData() is a separate function that takes all records from the grid and maps all cells in records.
row() and rows(), will get the records and the record texts in the grid
Happy testing and... make it green, becomes a dream :).
After searching for a while a solution for double clicking on a grid row, base on the cell text and the column name, I found one. Here is the code for it.
In this example you can double click or click a row based on the cell text and column name.
headers() is a separate function that identifies all column headers in the grid.
readGridData() is a separate function that takes all records from the grid and maps all cells in records.
row() and rows(), will get the records and the record texts in the grid
Happy testing and... make it green, becomes a dream :).
Subscribe to:
Posts (Atom)
Popular Posts
-
Introduction Recently I've been asked by a blogger how can I use SpecFlow to write a test in Visual Studio. " I am a beginner i...
-
Introduction In this article we will transcribe the java code into c# for the following links: http://ralucasuditu-softwaretesting.blogsp...
-
How my Desktop looks like :)? This is an useful wall-chart from Rosetta Stone and Cookbook that covers popular technologies as XPath...