New answers tagged

1

Since you are using CodedUI for this I would write something like this. public static void GetAllElements(BrowserWindow bw) { var a = bw.GetChildren().Where(x => x.GetProperty("TagName").ToString() == "TD"); foreach (var control in a) { Console.WriteLine(control.Name); ...


0

It is not in one go, but one list per element type, using driver.FindElement(By.TagName("tag")) http://www.seleniumhq.org/docs/03_webdriver.jsp (as @ilm correctly suggested)


1

Selenium cannot perform any operation apart from web elements, pdf can be tested with the help of java Apache API for pdf Go through this link https://pdfbox.apache.org/docs/1.8.10/javadocs/ to explore more about PDFbox API


0

To interact with elements in new window you have to switch you driver focus to new window, you can do it with the help of driver.switch.window("Title of window") And then try to find out the dropdown element in the window Note: If title of window does not work in your case, there are other ways to find out the window. For example finding out number of ...


1

You can download the said PDF using Selenium webdriver, however I don't think you can verify the contents of the PDF, because that is not possible as far as I know using Selenium webdriver alone. You can use Apache PDFBox to verify PDF contents- however it is a JAVA library. I am not sure whether you can combine PDFBox, along with Selenium and automate the ...


0

Because I can't comment: Here are some thoughts, I can probably provide more if you give the HTML as well. What is similar about the fields that are processing slow? Or fast? Carefully look at the UIspy to review the ControlType and Properties. Remember, the more specific you make your SearchProperties the faster they will locate. Conversely, the more ...


-1

If yout are testing mobile browser and you need type on required date field to finish fill form, my solution works with any phone in any operational system. JavascriptExecutor js = (JavascriptExecutor)driver; js.executeScript("document.getElementById('id').value='1988-01-01'");



Top 50 recent answers are included