1

Topic: Selenium - How to check up the total from different fields with automatically counted value?

Good afternoon!
Dear experts,  and it is simple passers-by.
There was in my life a new stage - new operation, learning new.
Never in life was engaged in test automation (car writing (and a unit) tests), but now it is necessary. Therefore with might and main I study Selenium, C#, and everything that can it is useful))).
Already wrote the small test for check of filling of the shape (web application), BUT there is one moment.
I ask the help in the following.
There is a certain dialog box with the inventory with instructions of piece price and fields where it is possible to enter an amount of these pieces
For example;
Carrots X 100 rbl. [carrot_count]
Potato X 200 rbl. [potato_count]
Cabbage X 50 rbl. [cabbage_count]

Fields [carrot_count], [potato_count], [cabbage_count] are filled with the user (the amount of pieces of the goods is underlined). For filling of this field methods at me are written.
Thus on the form there is a field [summa] in which the automatic machine the total of roubles depending on is considered what amount of pieces is entered into fields.

For example;
Carrots X 100 rbl. [2]
Potato X 200 rbl. [1]
Cabbage X 50 rbl. [0]

Accordingly, in the field [summa] the automatic machine the total = is considered 400 rbl.
It is necessary in language C# with usage Selenium WebDriver to register check of that the total in the field [summa] was counted correctly on the basis of the gated in data about an amount of pieces.
I suspect that it will register in assertTrue and is possible even with usage JQuery (here it did not reach yet).
Can at whom there are ideas?
I will be grateful for any help.
All the world and well-being)))

2

Re: Selenium - How to check up the total from different fields with automatically counted value?

Thanks all who read!!!!!
Found another (not the best) the decision.
The subject is closed. All the pattern!