コード例 #1
0
 public void SwitchToFrame(IWebDriver driver)
 {
     PrintActionInfo(nameof(SwitchToFrame));
     Execute(frame =>
     {
         BorderHighlight.Highlight(frame, Color.Green);
         driver.SwitchTo().Frame(frame);
     }, driver);
 }
コード例 #2
0
        public void SendKeys(string textToInput, IWebDriver driver)
        {
            WaitElementDisplayed(driver);
            PrintActionInfo(nameof(SendKeys));

            Execute(input =>
            {
                BorderHighlight.Highlight(input, Color.Blue);
                input.SendKeys(textToInput);
            }, driver);
        }
コード例 #3
0
        public void Click(IWebDriver driver)
        {
            WaitElementDisplayed(driver);
            PrintActionInfo(nameof(Click));

            Execute(button =>
            {
                BorderHighlight.Highlight(button, Color.Red);
                button.Click();
            }, driver);
        }