Example code
This commit is contained in:
37
pom/Components/VideoComponent.cs
Normal file
37
pom/Components/VideoComponent.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using OpenQA.Selenium;
|
||||
using OpenQA.Selenium.Support.UI;
|
||||
|
||||
namespace pom.Components
|
||||
{
|
||||
public class VideoComponent
|
||||
{
|
||||
private IWebDriver webDriver;
|
||||
private WebDriverWait webDriverWait;
|
||||
private IJavaScriptExecutor jsExecutor;
|
||||
|
||||
public VideoComponent(IWebDriver _webDriver)
|
||||
{
|
||||
webDriver = _webDriver;
|
||||
webDriverWait = new WebDriverWait(webDriver, TimeSpan.FromSeconds(30));
|
||||
jsExecutor = (IJavaScriptExecutor)webDriver;
|
||||
}
|
||||
|
||||
public void PlayVideo()
|
||||
{
|
||||
//Plays Video
|
||||
}
|
||||
|
||||
public void PauseVideo()
|
||||
{
|
||||
//Pauses Video
|
||||
}
|
||||
|
||||
public bool GetVideoPlayState()
|
||||
{
|
||||
//Get video play sate from player
|
||||
return (false);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user