English 中文(简体)
WatIn检测器内层末含有一个白色空间。 预算外
原标题:WatIn test innerText contains a whitespace at the end. HTML does not
  • 时间:2011-09-30 12:55:01
  •  标签:
  • html
  • watin

I m using WatIn to automate IE9 testing of table. Text of cell contains a trailing whitespace that is not in the HTML.

我已经通过《WatIn法典》,发现它正在要求内部引渡。 内部提款权的价值还有拖车的白色空间。

对不同机器进行同样的测试,同时使用同样的电子版本,并测试同一网站和白色空间。

我怎么能避免我机器上 trail的白色空间?

问题回答

我没有看到你的具体问题,但我看到,由于不同版本的国际电子计算和全球导航卫星系统,超文本产出略有不同。

可通过<条码>载体移除拖网白空间。 TrimEnd方法。

www.un.org/Depts/DGACM/index_spanish.htm 例C

string extraspaces = " spaces before and after ";
Console.WriteLine("None a" + extraspaces + "a");
Console.WriteLine("Trim a" + extraspaces.Trim() + "a");
Console.WriteLine("TrimStart a" + extraspaces.TrimStart(   ) + "a");
Console.WriteLine("TrimEnd a" + extraspaces.TrimEnd(   ) + "a");




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签