New answers tagged

-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#.


1

My current Solution. Parses through the HTML file (C:\QA\Test.html), finds all input tags and Select tags, if they have an ID it will convert them into a POM based format. It then prints out to C:\QA\Pom.txt the basic object for it. Overall, it does 90% of the work that I need, with minor editing. using System; using System.Linq; using System.IO; using ...


0

One of the main benefits to running Selenium Grid is you can run lots of parallel tests and in different combinations of environments. Even if you run only one browser + operating system you might still benefit from the fact these are hermetic systems, isolated from each other. Therefore one browser failure won't cause the other tests to fail. Although, ...


2

After getting idea from Tango199 answer, I modified his solution and have now implemented below code (once ComboBox is found): HtmlListItem html_listItem = new HtmlListItem(html_comboBox); html_listItem.SearchProperties.Add(HtmlListItem.PropertyNames.ValueAttribute, str_Value); html_listItem.Select(); where str_Value = Value Attribute (like 7311, 7312) as ...


0

Link for Java solution http://toolsqa.com/selenium-webdriver/testing-flash-selenium-flash-javascript-communication/ Info about tool: http://www.adobe.com/devnet/flash/articles/flash_selenium.html Haven't found for C#, try to read this Flash automation using Selenium RC


2

(This was meant to be a comment, but I do not have enough rep to do so) If you can find the ComboBox within your page, you should be able to iterate over all of the different options. If you can do that you should be able to check the ValueAttribute within the option. Once you find the option that you would like to select, you should be able to set the ...


2

As far as I know unless you create Ordered Tests the tests are always executed randomly as this is the preferred way of executing them to ensure there are no dependencies between them. Otherwise you could end up with a test that passes just because you executed another test previously.


1

It looks like the different C# browser drivers all extend RemoteDriver and end up sending the find elements commands over HTTP using the WebDriver protocol. Therefore, the actual finding of elements within the DOM does not take place in the C# driver code. Instead, it's ultimately up to the browsers themselves to provide responses to these commands. For ...



Top 50 recent answers are included