Tag: 编码ui测试

编码的UI – C# – time itemprop标签 – 如何validation年份存在

我昨天在一个稍微不同的问题上得到了@dlatikay的帮助,这帮助我部分解决了误报。 这是代码片段: string countCurrentYearQA = (string)(window.ExecuteScript(“count = 0; if(document.body.innerText.toString().indexOf(‘” + nowYearQAString + “‘) > -1){count = 1;} return count.toString();”)); string countPastYearQA = (string)(window.ExecuteScript(“count = 0; if(document.body.innerText.toString().indexOf(‘” + pastYearQAString + “‘) > -1){count = 1;} return count.toString();”)); string countCurrentYearQAWithoutEndPipe = (string)(window.ExecuteScript(“count = 0; if(document.body.innerText.toString().indexOf(‘” + nowYearQAStringWithoutPipe + “‘) > -1){count = 1;} return count.toString();”)); string countPastYearQAWithoutEndPipe […]