[QA] Test_page env variable and url visited

Chris McMahon cmcmahon at wikimedia.org
Thu Oct 10 13:48:11 UTC 2013


On Thu, Oct 10, 2013 at 3:18 AM, Ċ½eljko Filipin <zfilipin at wikimedia.org>wrote:

> Hi Tomislav,
> On Tue, Oct 8, 2013 at 1:05 AM, Tomislav Plavcic <tplavcic at gmail.com>wrote:
>
>> #2
>>
> When a test fails maybe it would be good that it prints a url visited
>> so I can check a tested page manually -
>
>
If you just need it for temporary debugging, you can always add a 'puts'
line inside the steps file at the appropriate place:

puts @browser.url

will print the current url to the terminal.

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20131010/6aaff08f/attachment.html>


More information about the QA mailing list