Hi Naimish
I have below code. What is happening . It opens 1,2,3, video but only last one is run. I want first video should run then second,third and so on.
foreach (var video in videos)
{
_driver.Navigate().GoToUrl(video);
await Task.Delay(1000); // This is just to simulate the time it takes to play the video
}
var videos = new List
{
"youtu.be/f7V5l5-EU",
"youtu.be/WI-KwauaM",
"youtu.be/_KOUp4WBo0",
"youtu.be/5CPMILQrE"
};
Thanks
Ramco RamcoPosted May 1, 2024, 7:25 AM
Hi Jignesh
After my first video youtube starts its own suggested video. I want that my second video should run and so on
Thnaks
Jignesh KumarPosted May 1, 2024, 7:11 AM
Have you check first video time span. You need to wait until that video complete.
Ramco RamcoPosted May 1, 2024, 6:47 AM
Hi Jignesh
With the below code only my first video runs.
Thanks
Jignesh KumarPosted May 1, 2024, 6:34 AM
@Ramco Have you check on last reply. It should work for you.
Jignesh KumarPosted Apr 30, 2024, 5:55 AM
Hello Ramco,
You can use the time value attribute to delay using timespan, if you do not get any values then you can set the default time value as per your requirement
Ramco RamcoPosted Apr 30, 2024, 5:30 AM
Hi Jignesh
I am trying below code but it is not working. In timevalue it gives video time say 1:20. I want after completing this and a gap of few seconds it should run second video and so on
Thanks
Jignesh KumarPosted Apr 30, 2024, 5:05 AM
Hello Ramco,
Please do below change,