NSelene
NSelene copied to clipboard
consider adding as extensions to support namespace things like Overwrite via Ctrl/Command + A + keys
public static SeleneElement Overwrite(
this SeleneElement element,
string value)
{
element.Type(Keys.Control + "a" + Keys.Control + value);
return element;
}
but we should ensure that it will be cross-platform (on mac os we should use command instead of control)
@yashaka is something like this enough?:
public static SeleneElement Overwrite(this SeleneElement element, string value)
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
element.Type(Keys.Command + "a" + Keys.Command + value);
}
else
{
element.Type(Keys.Control + "a" + Keys.Control + value);
}
return element;
}