New answers tagged

0

What's wrong with Visual Studio Community? It's free, perfect for C# and has the Microsoft UnitTest framework integrated. And if you don't like that one, use NUnit (also free).


0

I also use Selenium C# for several years and I don't have any problem with Explicit Wait. This issue may be this is not a good + reliable method for explicit wait or maybe this comes from your site We need more info to isolate the issue, I think you need to capture the screenshot and print out HTML when the test failed. Sorry, I don't have ...


0

In your case the flash allow button is the hardest part, because its not in the DOM, it is something outside of the browser. Something you cannot interact with with Selenium. What I have done in the past is programmaticly take a screenshot of the desktop, look for a partial image (which is the button), return the coordinates of the button and then click on ...


0

It's hard to check if the button is clickable (working) or not without clicking on it. For your case, so you can use IsDisplayed and IsEnabled to compare status before and after the changes happen.


0

Assert.IsFalse(button.Enabled);


-1

Resolved. Quite a newbie error. I should use only firebug to find xPath. Like below [FindsBy(How = How.XPath, Using = ...


0

For testing Xpaths and CssSelectors, please open Chrome and its Developer Tools (by pressing F12). In the console screen, you can enter the following: $x("your xpath here") or $$("your Css selector here") After pressing Enter, the console will list all elements matching your query. This is the easiest method to test and fix any mistakes in your ...


0

So the actual issue was that a visible button was clicked, before the javascript handler for it was loaded. Theoretical solution (still have to test it properly) is this: use Fiddlercore to listen for all HTTP(S) requests and responses. If I know the required resource for the button action, I can simply check for every succesfull response if it matches the ...


2

I haven't tried it but there's a Chrome Extension called Selenium Page Object Generator that looks like it automates PO creation, and it supports C#. SWD Page Recorder also automates PO creation, and supports C#.



Top 50 recent answers are included