document.write("<div class=\"pastie\">\n");
document.write("  <link href=\"http://pastie.org/stylesheets/embed.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  <link href=\"http://pastie.org/stylesheets/clean.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />\n");
document.write("  \n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("\n");
document.write("\n");
document.write("<h2>step_definitions/common_steps.rb <\/h2>\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("	\n");
document.write("	<div class=\"allcode\">\n");
document.write("		<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n");
document.write("		<tr>\n");
document.write("			<td>\n");
document.write("				\n");
document.write("				<pre class=\"textmate-source-numbers\">1\n");
document.write("2\n");
document.write("3\n");
document.write("4\n");
document.write("5\n");
document.write("6\n");
document.write("7\n");
document.write("8\n");
document.write("9\n");
document.write("10\n");
document.write("11\n");
document.write("12\n");
document.write("13\n");
document.write("14\n");
document.write("15\n");
document.write("16\n");
document.write("<\/pre>\n");
document.write("			<\/td>\n");
document.write("		<td>\n");
document.write("		<pre class=\"textmate-source\"><pre class=\"sunburst\"><span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Dado<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span><span class=\'keyword keyword_operator keyword_operator_logical keyword_operator_logical_ruby\'>^<\/span>que acessei a página de (.<span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>*<\/span>)<span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_pre-defined variable_other_readwrite_global_pre-defined_ruby\'>$/<\/span> <span class=\'keyword keyword_control keyword_control_start-block keyword_control_start-block_ruby\'>do <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>pagina<\/span>|\n");
document.write("  <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@browser<\/span>.open path_to(pagina)\n");
document.write("  <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@browser<\/span>.wait_for_page_to_load <span class=\'constant constant_numeric constant_numeric_ruby\'>10000<\/span>\n");
document.write("<span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Quando<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span><span class=\'keyword keyword_operator keyword_operator_logical keyword_operator_logical_ruby\'>^<\/span>digito <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;([^<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span>]*)&quot;<\/span> no campo <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;([^<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span>]*)&quot;<\/span><span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_pre-defined variable_other_readwrite_global_pre-defined_ruby\'>$/<\/span> <span class=\'keyword keyword_control keyword_control_start-block keyword_control_start-block_ruby\'>do <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>valor<\/span>, <span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>campo<\/span>|\n");
document.write("  <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@browser<\/span>.type field_for(campo), valor\n");
document.write("<span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Quando<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span><span class=\'keyword keyword_operator keyword_operator_logical keyword_operator_logical_ruby\'>^<\/span>clico no botão <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;([^<span class=\'constant constant_character constant_character_escape constant_character_escape_ruby\'>\\&quot;<\/span>]*)&quot;<\/span><span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_pre-defined variable_other_readwrite_global_pre-defined_ruby\'>$/<\/span> <span class=\'keyword keyword_control keyword_control_start-block keyword_control_start-block_ruby\'>do <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>botao<\/span>|\n");
document.write("  <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@browser<\/span>.click button_for(botao), <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:wait_for<\/span> =&gt; <span class=\'constant constant_other constant_other_symbol constant_other_symbol_ruby\'>:page<\/span>\n");
document.write("<span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("\n");
document.write("<span class=\'variable variable_other variable_other_constant variable_other_constant_ruby\'>Entao<\/span> <span class=\'keyword keyword_operator keyword_operator_arithmetic keyword_operator_arithmetic_ruby\'>/<\/span><span class=\'keyword keyword_operator keyword_operator_logical keyword_operator_logical_ruby\'>^<\/span>vejo o texto <span class=\'string string_quoted string_quoted_double string_quoted_double_ruby\'>&quot;(.*)&quot;<\/span> na tela<span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_global variable_other_readwrite_global_pre-defined variable_other_readwrite_global_pre-defined_ruby\'>$/<\/span> <span class=\'keyword keyword_control keyword_control_start-block keyword_control_start-block_ruby\'>do <\/span>|<span class=\'variable variable_other variable_other_block variable_other_block_ruby\'>texto<\/span>|\n");
document.write("  <span class=\'variable variable_other variable_other_readwrite variable_other_readwrite_instance variable_other_readwrite_instance_ruby\'>@browser<\/span>.text?(texto).should be_true\n");
document.write("<span class=\'keyword keyword_control keyword_control_ruby\'>end<\/span>\n");
document.write("<\/pre><\/pre>\n");
document.write("		<\/td>\n");
document.write("		<\/tr>\n");
document.write("		<\/table>\n");
document.write("	\n");
document.write("	<\/div>\n");
document.write("\n");
document.write("\n");
document.write("  \n");
document.write("  \n");
document.write("  <div class=\"credit\">\n");
document.write("    <div class=\"buttons\">\n");
document.write("      <a href=\"http://pastie.org/pastes/818575.txt\">\n");
document.write("      <img src=\"http://pastie.org/images/view.png\" height=\"20\" width=\"67\" /><\/a>\n");
document.write("    <\/div>\n");
document.write("  \n");
document.write("    <a href=\"http://pastie.org/818575\">Pastie #818575<\/a> linked directly from <a href=\"http://pastie.org/\">Pastie<\/a>.\n");
document.write("  <\/div><\/div>");

