problem about browser-automation-Collection of common programming errors


  • MacGyver
    selenium2 webdriver browser-automation performance
    When WebDriver initializes, there is a long waiting time when a browser window launches before the actual automated test begins. How can I speed this up? Is there a way to have a browser window running at all times, and just have WebDriver grab onto that window the next time it launches perhaps? If you have any clever ideas, please let me know.Setup: NUnit, Selenium C# client drivers, Mozilla Firefox driver, using Visual Studio 2010 to write tests (since I’m using the C#.NET client drivers)

  • user526186
    webbrowser-control watin browser-automation
    Our target is: Watin-enabled browser testing embedded in a .net winform.Currently, we are using a .net WebBrowser control to embed browser behavior in a winform. We are attaching WatiN to the WebBroswer control on the form with code like this ( thanks prostynick ):var thread = new Thread(() => {Settings.AutoStartDialogWatcher = false;var ie = new IE(webBrowser1.ActiveXInstance);ie.GoTo(“http://www.google.com”); }); thread.SetApartmentState(ApartmentState.STA); thread.Start();The problem is th

  • Chuck van der Linden
    ruby modal-dialog watir browser-automation watir-webdriver
    Is the method modal_dialog supported by watir-webdriver? If not, is there another way for setting some text in a text field and clicking an ok button?I’ve tried by puttingbrowser.modal_dialog.text_field(:name, “0.1.1.7.1.0.0.2.1.6.3.1”).set(whatsNew)but I keep getting the following error message: NoMethodError: undefined method `modal_dialog’ for #<Watir::Browser:0x1026fa560>I am Using Watir-Webdriver and the browser is Firefox.This is the element I am trying to access:<textarea onblur=

  • Saik0
    webdriver selenium2 java browser-automation
    I am trying to run the below code but getting error. Can you please point out the issue?import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxProfile;public class SelTe2 {public static void main(String[] args) {FirefoxProfile firefoxProfile = new FirefoxProfile();firefoxProfile.setP

  • derigible
    vba excel-vba automation office-automation browser-automation
    I am writing a macro that will scrape my company’s internal SAP site for vendor information. For several reasons I have to use VBA to do so. However, I cannot figure out why I keep getting these three errors when I attempt to scrape the page. Is it possible that this has something to do with the UAC integrity model? Or is there something wrong with my code? Is it possible for a webpage using http can be handled differently in internet explorer? I am able to go to any webpage, even other internal