Jump to content
uniGUI Discussion Forums

zlatkoi

uniGUI Subscriber
  • Content Count

    11
  • Joined

  • Last visited

  • Days Won

    1

zlatkoi last won the day on July 17 2014

zlatkoi had the most liked content!

Community Reputation

1 Neutral

About zlatkoi

  • Rank
    Newbie
  1. zlatkoi

    Name of ID (HTML): Button, input etc.

    Hi, maybe this will help also. This is python code for clicking buttons and filling edit boxes: def uni_set_element_text(driver, element_name, element_text ): try: s = "//table[contains(@class, '" + element_name + "')]//input[contains(@id, 'inputEl')]" driver.find_element_by_xpath(s).clear() driver.find_element_by_xpath(s).send_keys(element_text) except NoElementPresentException as e: return False return True def uni_click_label(driver, element_id): try: s = "//label[contains(@id, '" + element_id + "')]" driver.find_element_by_xpath(s).click() #driver.find_element_by_id(element_id).click() except NoElementPresentException as e: return False return True def uni_click_button(driver, element_name): try: s = "//a[contains(@class, '" + element_name + "')]//span[contains(@id, 'btnEl')]" driver.find_element_by_xpath(s).click() except NoElementPresentException as e: return False return True def uni_click_pgc_tab(driver, page_control_name, element_caption): try: s = "//div[contains(@class, '" + page_control_name + "')]//span[contains(@id, '-btnInnerEl') and .//text()=" + element_caption + "]" driver.find_element_by_xpath(s).click() #driver.find_element_by_id("tab-1013-btnInnerEl").click() except NoElementPresentException as e: return False return True On Server side i have: procedure TUniForm.UniFrameCreate(Sender: TObject); begin Button.JsControl.Cls := Self.Name + '.' + Button.Name; EditBox.JsControl.Cls := Self.Name + '.' + EditBox.Name; end; Saved me lot of typing in testing Regards, Zlatko
  2. zlatkoi

    Automation test for UniGUI applications

    I started to play with http://docs.seleniumhq.org/ Selecting of elements is big problem. Here is snippet from script generated by Selenium IDE. It is simple login dialog, fills username, password and then LogIn button is clicked. <tr> <td>open</td> <td>http://localhost:8089/app.dll</td> <td></td> </tr> <tr> <td>type</td> <td>xpath=//table[contains(@class, 'uSyLoginDialog.edUsername')]//input[contains(@id, 'inputEl')]</td> <td>guest</td> </tr> <tr> <td>type</td> <td>xpath=//table[contains(@class, 'uSyLoginDialog.edPassword')]//input[contains(@id, 'inputEl')]</td> <td>password</td> </tr> <tr> <td>click</td> <td>xpath=//a[contains(@class, 'uSyLoginDialog.btnOK')]//span[contains(@id, 'btnEl')]</td> <td></td> </tr> My plan is to test application with python script, Regards, Zlatko
  3. zlatkoi

    ###url### variable

    Yes, i know that, but I plan to use same application for more then one web site. I want to change ###url### to actual address of the site, so that template can stay unchanged. Btw, I am using uniGUI for Timesheet application, having up to 100 users online in same time. All tests gone more then good. Regards, Zlatko
  4. zlatkoi

    ###url### variable

    Hi, my web address is https://<myAddress> In UniServerModule.ServerMessages.TerminateTemplate href="[###url###]" generates address http://<myAddress> what is the easiest way to change ###url### to https://<myAddress> ? Regards, Zlatko Ivanković
  5. zlatkoi

    Web stress

    Hi guys, I will try this: http://seleniumhq.org/ can execute scripts for automated testing, don't know yet if it can do performance tests. Regards, Zlatko
  6. zlatkoi

    Survey: Features you want to see in version 1.0

    Hi, 1) Release commercial license 2) Focus development on WEB mode Regards, Zlatko
  7. zlatkoi

    Deploying to IIS 7

    Hi Jim > If I enter www.mysite.com/MyAPP (and every similar combination I can think of) I get the "connecting" message, and nothing is in the MyAPP\log directory. I am also new to IIS but try www.mysite.com/MyApp/MyApp.dll Regards, Zlatko
  8. zlatkoi

    Suggestion.... For V2 ? Or another product ???

    Hi to everyone. What about this ? http://www.smartclient.com/product/ Regards, Zlatko
×