我在做很多事情时,ja得.。 我重复的情景是:
- load page
- change some scripts for that page
- reload page with ctrl+f5 and see if it works
我想做的是,只重载整页的文字,因为标识是相同的。 这样做的任何途径?
我在做很多事情时,ja得.。 我重复的情景是:
我想做的是,只重载整页的文字,因为标识是相同的。 这样做的任何途径?
首先,尝试并尽量减少这种测试。 书写原,DRY代码,并在将它并入现场/网页之前进行单位测试。 你们可以在青.的 con子里迅速这样做。
Next, if the JS that you are reloading sets intervals or event listeners, then you will want to clear those intervals and unbind those listeners before reloading the JS under test. That means that anonymous intervals and event handlers are forbidden.
创建一份联合文件,必要时使用clearInterval(
),removeEventListener(
和.unbind(
)。
之后,你可以在火焰虫中操作这样的法规:
function addJS_Node (text, s_URL)
{
var scriptNode = document.createElement ( script );
scriptNode.type = "text/javascript";
if (text) scriptNode.textContent = text;
if (s_URL) scriptNode.src = s_URL;
document.head.appendChild (scriptNode);
}
addJS_Node (null, Path_to_JS/ResetTimersAndEvents.js );
addJS_Node (null, Path_to_JS/JS_Under_Test.js );
// etc.
I think what you really need is automated testing. Write your tests and then just rerun them after making a code change.
http://code.google.com/p/selenium/wiki/GettingStarted” rel=“nofollow”>webdriver 。
目前没有办法。
如果标记相同,那么小数+f5的错误是什么? 我猜想你不想分散在形式领域的数据? 这再次造成问题,因为如果你只是重载文字,这些文字在改变田地时会发生火灾,那么这些事件就永远不会发射,并可能导致一页的倒塌。
有一些浏览器粉碎物,使你能够自动填满表场,点击带预先界定的数值的纽子,这可能是重载文字的良好选择。 它认为,这一火fox plugin将只读到https://addons.mozilla.org/en-US/firefox/addon/automeeting-forms/。
How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.
I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...
Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...
Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...
I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...
Is it possible for someone to give me a few pointers on how to display a multidimensional array in the form of a bar graph? The array is multidimensional, with three elements in each part - and the ...
Is it possible to reload a form after file-input change? I have a form where the user can chose an image for upload. I also have a php script which displays that image resized. I only wonder if it ...
I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.