Unable to do any action after switching to a new window using Karate [duplicate] - ui-automation

This question already has an answer here:
Switch Page Karate UI issue
(1 answer)
Closed 1 year ago.
I am not able to proceed with performing any action after switching to the new window.I am using 0.9.6
Then switchPage('Page Title')
karate.log("driver.url", driver.url) [gives me the new window url]
below is where it fails since it did not identify the locator
And waitFor('locator on the new page') [Fails]
I know there was a similar issue posted last month but with no resolution. Since I am not able to comment on it, I had to post a new question.
Karate-UI automation : Able to Switch page but not able to identify elements on that new page

Please try 1.1.0.RC2 and confirm if it is fixed: https://github.com/intuit/karate/issues/1606

Related

How to create API with Dart?

I am currently creating a Flutter plugin, but I'm stuck in creating API.
This is an API that I want to create. (Java Example)
JAVA
PeterWorks.UserProperties userProperties = new PeterWorks.UserProperties();
userProperties.setAttrs("user_nick", "peterPark")
.setAttrs("place","Seoul")
.setAttrs("height",180)
.setAttrs("married",false);
Can you give me a sample that how to create that API with Dart?
Thanks.
You should check the types of topics that are normally allowed here, as this is borderline and others my outright flag it. In general, you should be posting specific questions showing what you've actually tried and not "build it for me" questions.
That said, here is a link (no affiliation) I referenced a while ago that focuses on building a basic backend server using Dart. See the second example.

Soundcloud custom player bug [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Soundcloud fails to acknowledge their bug with the custom players. Many sites are being affected. Here's a link to my previous question
https://stackoverflow.com/questions/16993681/soundcloud-custom-player-skin-not-playing-next-tracks
I can confirm that the bug exists as well. I created an issue about it on their github page, and i have also emailed support. I've spent the last two days trying to see if i could solve it by modifying their code somehow, but i'm pretty sure the bug exists in the actual flash payload that is being delivered via their API, and not on the javascript end of things.
EDIT: ok, i came up with a temporary solution to circumvent soundcloud's bug.
In sc-player.js around line 209 you should see:
load: function(track) {
var url = track.uri;
if(player){
player.api_load(url);
}else{
// create a container for the flash engine (IE needs this to operate properly)
$('<div class="sc-player-engine-container"></div>').appendTo(document.body).html(flashHtml(url));
}
This is the call that injects the new track into the flash player using the api_load call. Problem is that is totally not working right now. so instead of using that api, we just destroy the existing audio engine and replace it with a new one like so:
load: function(track) {
var url = track.uri;
if(player){
// player.api_load(url);
$('.sc-player-engine-container').html(flashHtml(url));
}else{
// create a container for the flash engine (IE needs this to operate properly)
$('<div class="sc-player-engine-container"></div>').appendTo(document.body).html(flashHtml(url));
}
Now it will play tracks after the first track finishes, or when the user switches tracks. This is not optimal because we have to keep loading an extra resource from soundcloud, but soundcloud has left us i a stick situation, and i see no other viable solution at the moment.
Indeed, i noticed that custom player doesn't work properly since few days.
I've found a solution for webkit browsers who support html5 audio only :
you have to include scripts as following (copied from sources):
widget js api: https://w.soundcloud.com/player/api.js
soundcloud.player.api.js (grab from github soundclound custom player)
sc-player.js (grab from github soundclound custom player)
It should solve problems only on html5 audio supported browsers, but it still don't work with the flashplayer fallback. Firefox 21 Mac version doesn't support mp3 yet, and use flash for stream audio...
I'm waiting for an answer from soundcloud dev support about this point.
Cheers.
I was able to fix the problem in Safari and Chrome by following the Soundcloud Github page updates from jQuery 1.4.2 to 1.9.0. https://github.com/soundcloud/soundcloud-custom-player
I also had to replace $.browser.msie with navigator.userAgent.match(/msie [6]/i) as described here: Fancybox doesn't work with jQuery v1.9.0 [ f.browser is undefined / Cannot read property 'msie' ]
I contacted the Soundcloud developer who suggested it could be a Firefox/Flash issue. Updating Flash did nothing for me, and the problem initially occurred simultaneously in all browsers. I applied deweydb's workaround and everything works well.

form element class is not loaded zf after uploading in dev server [duplicate]

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
Zend Framework: Model class not found
I am using ZF 1.11 and made a form element class to create drop down menu on the form . i get the error: Fatal error: Class 'Application_Form_Element_MenuSelect' not found after uploading the application in development server while It works perfectly in local xampp. Please help
$project_menu1 = new Application_Form_Element_MenuSelect('task_project_id');
$project_menu1->setLabel('Select Project: ')
->setRequired(true);
$this->addElement($project_menu1);
As it worked on Windows and doesn't work on your dev server, I suspect that you have a case-sensitivity issue with filenames as your dev server will almost certainly need the case of the filename to be correct.
Things to check:
The file is called MenuSelect.php
The folder name to MenuSelect.php has the correct case (probably should be application/forms/Element)
The class name within MenuSelect.php is correct

Display a progress bar page for a command line operation using INNOSETUP [duplicate]

This question already has answers here:
How to manipulate progress bar on Inno Setup Run section?
(2 answers)
Closed 2 years ago.
Is there a possibility to link the operation running on a command line to the innosetup page ?
Background :
I have a huge.zip file that has to be extracted during install operation. To achieve this i send commands(commandline args) from the InnoSetup. The extraction process runs in the background i.e on the command prompt. But there is no way for an user to know whats actually happening.
Required Solution
I would like to have some linking between these two parallel operations.
i.e somehow able to link the progress of the current operation (extraction of the files) from the command-line and display it to the user on the progress page during installation.
i.e i should be able to retrieve the remaining time / % operation completed to display it finally on the progress page.
I would greatly appreciate if anybody has any ideas for achieving the above
Cheers
This isn't really possible in Inno using a command line application as it (natively) has no way to read data from it.
You may have more luck creating a COM object that can fire events or make windows message callbacks that you then use to update the progress bar.

ASP.NET MVC: how to parse url string to get RouteData [duplicate]

This question already has answers here:
How to get RouteData by URL?
(2 answers)
Closed 8 years ago.
Is there any way to get RouteData from a url string?
I have login form with returlUrl as query string parameter.
My routes are defined as : {languageCode}/{controller}/{action}
In action method LogIn(string returlUrl) the returlUrl is something like "en/home/contacts" etc.
I need to change languagePart a i dont want to use string.Replace, as routes may change in future.
Thank you.
So this is an old thread obviously, but for anyone else coming to this question via Google, I just wrote a blog post about a way to do this pretty easily. I actually came across this question on SO when I was attempting to find a way to do this myself but I didn't find one that I liked so I wrote my own.
Creating a RouteData Instance from a URL
This forums thread might be useful: http://forums.asp.net/t/1281667.aspx
This is the best option I can think of off the top of my head. Bascially, using RouteTable.Routes.GetRouteData and Mocking HttpContextBase based on your Url string.