mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
@@ -205,7 +205,8 @@ namespace BTCPayServer.Tests
|
|||||||
IWebElement closebutton = null;
|
IWebElement closebutton = null;
|
||||||
TestUtils.Eventually(() =>
|
TestUtils.Eventually(() =>
|
||||||
{
|
{
|
||||||
var iframe = s.Driver.SwitchTo().Frame("btcpay");
|
var frameElement = s.Driver.FindElement(By.Name("btcpay"));
|
||||||
|
var iframe = s.Driver.SwitchTo().Frame(frameElement);
|
||||||
closebutton = iframe.FindElement(By.ClassName("close-action"));
|
closebutton = iframe.FindElement(By.ClassName("close-action"));
|
||||||
Assert.True(closebutton.Displayed);
|
Assert.True(closebutton.Displayed);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -88,6 +88,10 @@ namespace BTCPayServer.Tests
|
|||||||
if (!webElement.Displayed)
|
if (!webElement.Displayed)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
catch (NoSuchWindowException)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
catch (NoSuchElementException)
|
catch (NoSuchElementException)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user