[QA] Parse a table ?

Karima Rafes karima.rafes at gmail.com
Sat Jun 29 13:57:16 UTC 2013


Hi

I found :

Then(/^table should be there:$/) do |table|
   nodesTR = Nokogiri::HTML(@browser.html).css(".wikitable tr")
   tableResult = nodesTR.map {|tr| tr.css("th,td").map {|cell|
cell.text.strip}}
   table.diff!(tableResult)
end

Do you want I create new branch for this test ?

Bye
Karima

2013/6/27 Karima Rafes <karima.rafes at gmail.com>

> Hi Željko
>
> Sorry, I'm in Paris(France). So I will try to be there via IRC
> the next week via IRC if the time of the meeting is better for Europeans.
>
> I will do a "git pull" saturday to understand your solution of "HowTo parse a table".
>
> For info, I'm writing a light doc in french on your method.
> https://www.mediawiki.org/wiki/User:Karima_Rafes/Comment_Hacker_MediaWiki%3F
>
> Thanks
> Bye
>
> Karima
>
>
> >Hi Karima,
> >
> >do you plan to participate at the next testing event[1]? We can pair during
> >the event on implementing the test. If you did not plan to be there, there
> >will probably be a similar event next week in a time that is better for
> >Europeans.
>
> >Željko
> >--
> >1: https://www.mediawiki.org/wiki/Meetings/2013-06-27
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20130629/18c8554f/attachment.html>


More information about the QA mailing list