Tag Info

New answers tagged

2

driver = webdriver.Firefox() driver.implicitly_wait(10) # seconds driver.get("http:// enter your URL.") myDynamicElement = driver.find_element_by_id("myDynamicElement") Try above code and see if it is working or not.


2

wait = WebDriverWait(driver, 10) element = wait.until(EC.element_to_be_clickable((By.ID,'someid'))) Try above code and see if it is working or not.


2

In selenium the wait command doesn't really wait sometimes. That is there is some problem with that command. You can try the time.sleep(); command of python. It is an equivalent of the Thread.sleep(); command of Java. It will pause the execution of code for defined time limit. So you can give sufficient time that will allow your page to load. Hope it ...


0

The possible reason might be that page looks to be rendered (UI elements are in place), but not completely loaded in browser. If there is any background calls, especially to 3rd-party services, it might take a while to reach them and get response, only then browser is able to mark the page as finally loaded.


0

I had similar issue and it was because of permission. So try to run the script with sudo command. Hope it helps


0

AutoIt works great for simple automation tasks. It doesn't require scripting if you use it in it's basic form of record-play.


0

As for me Python helped a lot with tasks which were related to: Parsing data files, XML, HTTP, different streams, etc. Network operations, connections, data copying via Network, etc. Small utilities or helpers for Test Automation Framework: a. Configuration of XML files(set some element, update some value, ...) b. Gather some metrics from bug tracking / ...


1

Talking about UI testing you can try Sikuli - great tool which uses image recognition. Also it is a lib which can be installed with Sikuli: Tesseract which allows to grab/recognize text. It supports Python(Jython), Java, etc.


0

The same thing happens when I switch Chrome's default language. There are two solutions I can think of - manually add the Accept-Language: es header, or go directly to Google's Spanish version of the homepage - driver.get("http://google.es")



Top 50 recent answers are included