text:
Q: Failed: Cannot read property 'then' of undefined (protractor)        //get count of checked checkboxes,
//count must be 1 because it selected one product
                    var checkedCount = productPage.selectedProducts.count();
                    expect(checkedCount).toBe(1).then(function () {
                        browser.sleep(2222);
                        productDialogPage. createTaskButton.click();
                    });

this is my code. When user selects, createtaskbutton gets active.
normally it is disabled.
error is

Failed: Cannot read property 'then' of undefined
    Stack:
      TypeError: Cannot read property 'then' of undefined

when i change to this
//get count of checked checkboxes, count must 1 be because it selected one product
                var checkedCount = productPage.selectedProducts.count();
                expect(checkedCount).toBe(1);
                browser.sleep(4222);

                //click task create and expect confirm dialog to be displyed
                productDialogPage.createTaskButton.click();

same

Message:
      Failed: Cannot read property 'click' of undefined
    Stack:
      TypeError: Cannot read property 'click' of undefined

it doesnot read my spec class, it goes another spec as soon as it enters.
also for this same
            //get count of checked checkboxes, count must 1 be because it selected one product
            var checkedCount = productPage.selectedProducts.count();
            expect(checkedCount).toBe(1);
            browser.sleep(4222);

            browser.wait(function() {
                return productDialogPage.createTaskButton.isPresent();
            })

A: *

*expect(actual).toBe(expected) is not thenable because it does not return a promise.

*It appears that you should try ExpectedConditions

var EC = ExpectedConditions;

//get count of checked checkboxes,
//count must be 1 because it selected one product
var checkedCount = productPage.selectedProducts.count();
expect(checkedCount).toBe(1);

browser.wait(EC.elementToBeClickable(productDialogPage.createTaskButton, 4222));

//click task create and expect confirm dialog to be displyed
productDialogPage.createTaskButton.click();

A: For me ExpectedConditions (http://www.protractortest.org/#/api?view=ProtractorExpectedConditions.prototype.elementToBeClickable) helped, see answer before. And you have to resolve the promises. Hope it helps! :-)
productPage.selectedProducts.count().then(function(countOfSelectedProducts) {
            expect(countOfSelectedProducts).toBe(1);
            });
        });

// and then wait till your TaskButton is enabled via ExpectedConditions.elementToBeClickable

var EC = protractor.ExpectedConditions;

browser.wait(EC.elementToBeClickable(productDialogPage.element.createTaskButton()), 10000).then(function() {
        productDialogPage.element.createTaskButton.click();
});

redpajama_set_name: RedPajamaStackExchange


The incoming forward from New Castle, who missed his senior season due to knee surgery, was cleared to sprint and jump on Friday and expects a 6-8 week process to return to fill strength.
Gillis averaged 21.6 points, 12.2 rebounds and 2.3 assists as a New Castle junior.
MARTINSVILLE – New Castle forward and Purdue basketball signee Mason Gillis passed an important hurdle last week in his recovery from knee surgery.
Gillis, who missed his entire senior season after undergoing surgery to repair a torn meniscus in his right knee, had been jogging and doing other exercises. But as of April 1 he has been cleared to begin sprinting and jumping.
From there, he expects an eight-week progression back to fill strength sometime in early June — not long before he arrives in West Lafayette to begin the next stage of his career.
The 6-6, 215-pound Gillis sat on the bench with the North team at Saturday's 31st Annual North/South Indiana All-Star Classic at Martinsville. He was chosen as an honorary member of the team after the forward was unable to play at all in 2018-19.
His fellow Purdue signees Brandon Newman (18 points) and Isaiah Thompson (17 points) both played for the North, but the South emerged with a 154-135 victory.
For the previous three or four months, Gillis had been limited to stationary ball-handling and shooting upwards of 500 free throws a day, in addition to multiple rehab sessions. Last Monday he was cleared for light jogging, and he started backing that range out to 15 feet for jump shots — or at least the beginnings of a jump shot.
Gillis said the jumping will come along slowly, beginning with little box jumps and band-assisted jumps. He believes a year on the sidelines may have helped him read angles better on offense and stay ahead of opponents on defense.
If healthy, Gillis could step into important minutes at the 4 spot, along with rising sophomore Aaron Wheeler and any other returnees who prove themselves at that spot.
That Lawrence Central's Jake LaRavia scored 23 points for the South squad was not surprising. The surprising part was the 6-8 wing did not even attempt a 3-pointer.
LaRavia pulled off a couple of nifty transition baskets in the first half, then took an alley-oop 360 degrees for a dunk early in the second. All of his points came in the paint.
It was a fun afternoon for the former SIU-Edwardsville commit who is drawing the interest of programs such as Purdue since re-opening his recruitment. However, he admits showing coaches what else he can do beyond his 43% career 3-point shooting may have an added benefit.
"At this point, everyone knows I can shoot the ball based off my high school career," LaRavia said. "I feel like everyone knows I can jump, too. But displaying being able to get around someone at 6-8, being able to finish hard, dunking the ball — it's nice to show off."
LaRavia has not been offered a scholarship yet by Purdue. His only new offer came from Indiana State, which he will visit this coming weekend.
Gillis, Newman and Thompson all watched closely as their future teammates helped Purdue come within seconds of the program's first Final Four berth in 39 years.
"It was a fun ride," Thompson said. "They were two seconds away from going to the Final Four. Getting a chance to watch that on TV, knowing I get to be a part of that team and that great coaching staff next year is going to be fun. I'm definitely looking forward to it."


Where to the Aussie Dollar ?
Where to the Aussie dollar? The RBA could drop the official interest rate by another 25bps as soon as next quarter, according to the latest assessment by CheckRisk, the UK-based investment risk analysis firm.


text:
May 2019 Contents
Highland Survivor
FoFNL 2019 AGM & Conference
ScotRail Remedial Plan
Clearing the View
Freight Future
Far North Line Investment
Is On the Right Track
Aberdeen-Inverness
Improvement Project
£1.6 Million Depot Upgrade
New Sleeper Stock Debut
Not the Buchan Line!
Norway Imagination
Pandora Opens the Fare Box
Determined Effort
Strathpeffer Speeding
BTP Merger
Rail Work Rewarded
Final Jellicoe Plaque Unveiled
A CRP For the Far North Line?
CIS Installations
DVDs Review:
Steam Driver's Eye View
Stay Safe With Network Rail
& Thomas
Inverness Tram Map
Bridge Strike Driver Fined
Posh Trains to the North?
Time Does Transfix
Charlevoix:
Lovely But Look Carefully
This article from the Network Rail website lists some of the work that has been done in Control Period 5 on the Far North and Kyle Lines. Although your editor hates rail story headlines which include the astonishingly clever "on the right track", he let this one pass!
Relaid track on the Thurso branch
Photo: Network Rail
Network Rail has completed an £11m, two and a half-year project to renew and replace sections of track at 59 sites along the Far North Line in the north of Scotland.
Work included replacing a total of 36 miles of rail and more than 11,000 sleepers, as well as in some cases full renewal of sections of track on some of the most remote stretches of railway in the country.
The upgraded rail will improve reliability and comfort for passengers as well as delivering a reduction in future maintenance requirements.
In addition to the logistical challenges of working in some extremely remote locations on the single-track railway, the delivery of work also endured the challenge of winter weather in the far north of Scotland - overcoming both a washout of a section of track at Loch Luichart following heavy rain as well as the winter blast from the beast from the east.
When storm floods caused the track to 'wash-out' at Loch Luichart in August 2017, the Network Rail team with contractor Stobart Rail, were able to divert plant and resources working locally on the project to the site of the damaged track.
After clearing debris from the damaged area, 300 tonnes of ballast was replaced and the track stabilised; a rapid response which ensured that the line could quickly re-open for passenger service.
One of the most significant sections of work was at Thurso where the project renewed more than 6.5 miles of track between the town's station and Georgemas junction - removing more than 40 track faults on this section alone.
In an innovative first for Scotland's railway, the 1,100 rails used in the work were delivered by sea to Scrabster harbour - which saved 110 road freight journeys and reduced carbon emissions by approximately 200 tonnes.
Lindsay Saddler, Network Rail's head of maintenance, said: "We are committed to investing in the Far North line and between 2014 and 2019 we carried out more than £30m of work on the line - including £11m alone on the track renewals.
"The overall investment we have made includes renewing signalling systems and track sections across the route, improving earth works and structures and work at Level crossings to improve line-speeds and is all part of improving resilience and reliability in this part of the network.
"Although the Far North Line is not the busiest or highest profile part of our network, we realise and value the role that it plays in connecting isolated locations and the importance that it has in rural and remote communities it serves."

redpajama_set_name: RedPajamaCommonCrawl


We serve people in Ventimiglia in ways that help them survive and recover from forced displacement.
Our priorities include offering refugees and asylum seekers safe and supportive community along with pastoral support so that they know that God sees, hears and cares for them.
From a foundation of relationships of trust, we are helping refugees recover their dignity and find safe community, life-giving faith and solutions to their displacement.
To this end, we partner with local churches, organizations, and individuals.
As the last major city before the French border, Ventimiglia acts as a gateway to northern Europe. Italian authorities keep a watchful eye on all that happens here.
Refugees and asylum seekers often end up in Ventimiglia after they have run out of options. They often speak of Ventimiglia as their last hope of finding a place in Europe that will accept them. Most have endured long and traumatic journeys before reaching this coastal city.
Daily life is tough. Refugees struggle to find shelter and food. As few are permitted to stay, they are forced to try and figure out their next move in their search for safety and a normal life. They are vulnerable to people who would exploit them, including human traffickers.
While the majority of refugees and asylum seekers are young men, there are also women and children needing practical help and a trusted friend.
IAFR is in pioneering mode when it comes to developing the work in Ventimiglia. Exploratory visits have enabled us to get a basic understanding of the challenges and needs facing refugees here. We've also connected with a handful of exceptional people and a local church that are doing what they can to help refugees.
There is clearly much more that needs to be done.
Kelsey Briggs joined IAFR in 2018 to help pioneer this important ministry. She is presently in the US raising support. She hopes to relocate to Italy in early 2019, learn Italian and then move to Ventimiglia to start the work.
Click below if you would like to help pioneer this strategic ministry.


There is real anger both within and outside the Ibrox club over certain aspects of the Celtic Park clash – in particular the conduct of Scott Brown – but Gerrard is fully aware that focus must now centre on the immediate job in hand and the seven remaining Scottish Premiership fixtures.
"For myself and my players, it's important that we rest and refocus on what is in front of us," said Gerrard. "In football - whether you are on the back of a high or a low – it's important you move on very quickly.
"After defeat against a rival, it's nice to have a game pretty quickly to refocus and we have the chance to, hopefully, get a good performance and win against Hearts to get the feelgood factor back.
Gerrard was in no doubt about his targets for the remaining weeks of the season.
"We want to win as many football matches as we can," he said. "We have seven good games left – two obviously before the split - and we need to try to react and use our frustration and disappointment from the 'Old Firm' clash and use that in the next couple of games.
"Then we get a bit of a break before having five very exciting games in the split where we need to try and take as many points as we can, before we analyse the season as a whole.
"We've played them (Hearts) a couple of times, and they've been both aggressive and positive.
"They are a big, physical and aggressive team, and I mean that in and out of possession.