NSelene
NSelene copied to clipboard
Consise API to Selenium for .Net (the port of Selene in python / Selenide in Java)
Selenide in Java has something element.select(value) to be used with dropdown elements. But it works only with classic html `
Condsider adding Configuration.DriverSource as default delegate/func to call when initilizing driver
probably as in Selenide we also have to add a limitation to initialize only on calling first "open/load page", and fail with exception if any action like S("...").Click() is called...
Here is an example of potential method as extension: ```csharp public static class SeleneCollectionExtensions { public static int IndexOfElementBy( this SeleneCollection collection, Condition condition, int amongExpectedOfNumber=-1 ) { if (amongExpectedOfNumber>0)...
or maybe something like Configuration.FocusBeforeType The idea is to automatically wait if element is covered by other element and sendKeys passes, but click would not pass (let's test this by...
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...
Smth like: SeleneElement sElement = S("...") public SeleneElement SelectElementByIndex(SeleneElement element, int index) { new SelectElemen(element.ActualWebElement).SelectByIndex(index); return element; }
Use case: sometimes on ui we have S("#progress-bar").ShouldNot(Be.Visible) Can we configure NSelene to check such code and wait for example on each first failure of implicit NSelene action retry mechanism?
Port the https://github.com/KnowledgeExpert/selenidejs/pull/130 implementation from SelenideJs to NSelene