Tag Info

New answers tagged

0

I would recommend using a WebDriverWait along with one of the methods in the ExpectedConditions class. Basically, just wait for a element on the page using a pre-defined expected condition.


0

If you're referring to an alert: driver.switchTo().alert().dismiss(); That will dismiss a JavaScript alert. If you're talking about a pop up that is a part of the application's functionality and it's not working in IE, that's a bug if you're supposed to support IE and that's up to the developer to fix. In any case, a pop up is usually dealt with using ...


0

Try to open this address in browser first to check server is up. Also another Web App can be launched or hosted on this address and port. Check Firewall settings, try to disable it and check the results.


1

I found a workaround for this issue where I can check for the exception after each step using the [AfterStep] binding. This works for me, and tests that failed are now marked as inconclusive: [AfterStep] public void check() { var exception = ScenarioContext.Current.TestError; if (exception is WebDriverException ...


0

Have you tried to use WaitForReadyState? Here is my example: /// <summary> /// Waits the state of for ready within 30 sec. /// </summary> public void WaitForReadyState() { var state = string.Empty; try { var wait = new WrapperSeleniumWait(this, ...


0

If the pop-up window is part of the web-based app, that you are testing, you need to know why is only happening on FF and not on IE. There is a definitely a way on the settings on FF to disable pop up; however, IF in the future it is require to have pop-ups on your app, you will not have a user-oriented environment. Thus, I strongly suggest to not disable ...


1

I would suggest the following approach Decide on the features that are generally available on all e commerce websites (Like a e cart). Decide a few functionalities that will be common across all e commerce websites.(Add and Delete from the cart). Define how will your application recognise how to perform those specific functions on the website - Deploy ...


-1

You can use one single line to select the dropdown option. Avoid any extra line/code to click the dropdown. driver.FindElement(By.Id("DropdownId")).FindElement(By.XPath(".//option[contains(text(),'OptionText')]")).Click();


2

Tests that explore the GUI of an application need to simulate the keyboard and mouse to send commands. They also need to read the screen to validate that the correct things are displayed. To me the mechanisms for keyboard and mouse entry and for screen reading are more important than the programming language. However as your application is in C# writing the ...



Top 50 recent answers are included