zoukankan      html  css  js  c++  java
  • qtp descriptive programming multiple language(多语言支持)

    so easy,

    1,use the descriptive programming;

    2,use the | chracter to seperate the different language text ,so it can found the different language text ,if it found then it recognize the object correctly ;

    for example :

    there is a web element ,in chinese it shows the text as :选择客户名称通过过滤器,but in english it shows the text is:Select customer by filter

      set objCustomerfilter=objPage.webelement("innertext:=Select customer by filter|选择客户名称通过过滤器 ","html tag:=A")

    ok, now you can use the above code to make your code supported different language issues.enjoy it :) 

  • 相关阅读:
    10-3 集合之Set
    【Angular】排序
    【Mongous】
    【验证码】
    爬虫
    【DOM】
    年月日
    【Mocha】
    【Test】
    洛谷——P1823 音乐会的等待
  • 原文地址:https://www.cnblogs.com/alterhu/p/3522323.html
Copyright © 2011-2022 走看看