Zyrus
✅ Help Regarding async Method Implementation.
Hi, I'm a beginner trying to automate some tasks using c# and selenium but i need help with using async methods.
So, the scenario is, I have a foreach loop that runs 2 Methods (say A and B) a certain amount of times for each item in a list.(Method A and B cant run at the same time)
I want it go as follows:
And so on....
Basically, i want Method B to start independently from Main and wait for it to finish before running it again on the next loop.
How can I accomplish this?
Any guidance would be appreciated :D
I also cant figure out how can i use await inside the method since the browser task has various steps.
11 replies