TesteCompartilhamentoTarefas
open elefante
type email aluno@linux.ime.usp.br
type senha senha
clickAndWait login
assertXpathCount //*[@class="tarefa"] 1
clickAndWait sair
type email corbucci@ime.usp.br
type senha hugo
clickAndWait login
assertXpathCount //*[@class="tarefa"] 3
runScriptAndWait var element = window.document.getElementById("Preparar Fase 2");var cn = element.previousSibling.childNodes;for (i = 0; i < cn.length; i++){if (cn[i].tagName == "TD")for (j = 0; j < cn[i].childNodes.length; j++)if(cn[i].childNodes[j].tagName == "A" && cn[i].childNodes[j].innerHTML == "editar")window.location.href = cn[i].childNodes[j].href;} Edicao Prerar fase 2
type Compartilhamento aluno@linux.ime.usp.br
clickAndWait Atualizar Tarefa
clickAndWait sair
type email aluno@linux.ime.usp.br
type senha senha
clickAndWait login
assertXpathCount //*[@class="tarefa"] 2
clickAndWait Remover Preparar Fase 2
assertXpathCount //*[@class="tarefa"] 1
clickAndWait sair
type email corbucci@ime.usp.br
type senha hugo
clickAndWait login
assertXpathCount //*[@class="tarefa"] 3
clickAndWait sair