jssor not working after resiging from admin panel - jssor

I am getting this error after resigning from admin panel Any solution.
Uncaught TypeError: a.$GoToPosition is not a function
at jssor.slider.min.js:2
at Object.k [as $Each] (jssor.slider.min.js:2)
at g.$JssorCaptionSlider$.w [as $GoToPosition] (jssor.slider.min.js:2)
at jssor.slider.min.js:2
at Object.k [as $Each] (jssor.slider.min.js:2)
at w (jssor.slider.min.js:2)
at H (jssor.slider.min.js:2)

Related

flutter web throw Error Assertion failed: "call initWeb() before initSession"

I got this error on Google Console after I released my flutter web app, and some of my methods don't work as well as they do in the Android version.
errors.dart:251 Uncaught (in promise) Error: Assertion failed: "call initWeb() before initSession"
at Object.throw_ [as throw] (errors.dart:251:49)
at flutter_branch_sdk_web.FlutterBranchSdk.__.initSession (flutter_branch_sdk_web.dart:169:7)
at FlutterBranchSdk.initSession (flutter_branch_sdk_plugin.dart:49:22)
at order_screen._OrderScreenState.new.listenDynamicLinks (order_screen.dart:63:57)
at listenDynamicLinks.next (<anonymous>)
at runBody (async_patch.dart:84:54)
at Object._async [as async] (async_patch.dart:123:5)
at order_screen._OrderScreenState.new.listenDynamicLinks (order_screen.dart:62:34)
at order_screen._OrderScreenState.new.initState (order_screen.dart:40:7)
at [_firstBuild] (framework.dart:4728:57)
at framework.StatefulElement.new.mount (framework.dart:4561:5)
at framework.SingleChildRenderObjectElement.new.inflateWidget (framework.dart:3631:13)
at framework.SingleChildRenderObjectElement.new.updateChild (framework.dart:3383:18)
at framework.SingleChildRenderObjectElement.new.mount (framework.dart:6123:14)
at framework.StatelessElement.new.inflateWidget (framework.dart:3631:13)
at framework.StatelessElement.new.updateChild (framework.dart:3383:18)
at framework.StatelessElement.new.performRebuild (framework.dart:4613:16)
at framework.StatelessElement.new.rebuild (framework.dart:4311:5)
at [_firstBuild] (framework.dart:4566:5)
at framework.StatelessElement.new.mount (framework.dart:4561:5)

Error during access Text Input (TextFormField) =>Bad state: Unsupported method call on the flutter/textinput channel: TextInput.setCaretRect

I'm using Chrome Browser as my Emulator to Run my Flutter Apps.
During accessing any TextInput (TextFormField) there's error like this:
Error: Bad state: Unsupported method call on the flutter/textinput channel: TextInput.setCaretRect
at Object.throw_ [as throw] (http://localhost:53880/dart_sdk.js:5033:11)
at _engine.TextEditingChannel.new.handleTextInput (http://localhost:53880/dart_sdk.js:170190:21)
at _engine.EnginePlatformDispatcher.__.[_sendPlatformMessage] (http://localhost:53880/dart_sdk.js:156913:39)
at _engine.EnginePlatformDispatcher.__.sendPlatformMessage (http://localhost:53880/dart_sdk.js:156780:33)
at _DefaultBinaryMessenger.[_sendPlatformMessage] (http://localhost:53880/packages/flutter/src/services/system_channels.dart.lib.js:2110:38)
at _DefaultBinaryMessenger.send (http://localhost:53880/packages/flutter/src/services/system_channels.dart.lib.js:2152:40)
at OptionalMethodChannel._invokeMethod (http://localhost:53880/packages/flutter/src/services/system_channels.dart.lib.js:938:50)
at _invokeMethod.next (<anonymous>)
at runBody (http://localhost:53880/dart_sdk.js:37376:34)
at Object._async [as async] (http://localhost:53880/dart_sdk.js:37407:7)
at OptionalMethodChannel.[_invokeMethod] (http://localhost:53880/packages/flutter/src/services/system_channels.dart.lib.js:936:20)
at OptionalMethodChannel.[_invokeMethod] (http://localhost:53880/packages/flutter/src/services/system_channels.dart.lib.js:1059:34)
at OptionalMethodChannel.invokeMethod (http://localhost:53880/packages/flutter/src/services/system_channels.dart.lib.js:1039:36)
at invokeMethod.next (<anonymous>)
at runBody (http://localhost:53880/dart_sdk.js:37376:34)
at Object._async [as async] (http://localhost:53880/dart_sdk.js:37407:7)
at OptionalMethodChannel.invokeMethod (http://localhost:53880/packages/flutter/src/services/system_channels.dart.lib.js:1038:20)
at text_input.TextInput.__.[_setCaretRect] (http://localhost:53880/packages/flutter/src/services/text_input.dart.lib.js:1324:22)
at text_input.TextInputConnection.__.setCaretRect (http://localhost:53880/packages/flutter/src/services/text_input.dart.lib.js:1089:52)
at editable_text.EditableTextState.new.[_updateCaretRectIfNeeded] (http://localhost:53880/packages/flutter/src/widgets/widget_span.dart.lib.js:43665:56)
at editable_text.EditableTextState.new.[_openInputConnection] (http://localhost:53880/packages/flutter/src/widgets/widget_span.dart.lib.js:43386:41)
at editable_text.EditableTextState.new.[_openOrCloseInputConnectionIfNeeded] (http://localhost:53880/packages/flutter/src/widgets/widget_span.dart.lib.js:43410:37)
at editable_text.EditableTextState.new.[_handleFocusChanged] (http://localhost:53880/packages/flutter/src/widgets/widget_span.dart.lib.js:43618:50)
at focus_manager.FocusNode.new.notifyListeners (http://localhost:53880/packages/flutter/src/foundation/change_notifier.dart.lib.js:106:41)
at focus_manager.FocusNode.new.[_notify] (http://localhost:53880/packages/flutter/src/widgets/widget_span.dart.lib.js:46499:12)
at focus_manager.FocusManager.new.[_applyFocusChange] (http://localhost:53880/packages/flutter/src/widgets/widget_span.dart.lib.js:47229:26)
at Object._microtaskLoop (http://localhost:53880/dart_sdk.js:37480:13)
at _startMicrotaskLoop (http://localhost:53880/dart_sdk.js:37486:13)
at http://localhost:53880/dart_sdk.js:33257:9
Any solution for this matter ?

How to write into Ionic's `ion-input` with Protractor?

I'm just starting out with Ionic and looking at the documentation I figured I would go down the route of using the built-in stuff over plain HTML.
So I have this HTML:
<ion-item>
<ion-input type="tel"
autofocus="true"
placeholder="Phone number"
name="phoneNumber"
formControlName="phoneNumber"></ion-input>
</ion-item>
And in my e2e test I want to write to that field so I tried to do:
$('ion-input[name="phoneNumber"]').sendKeys('12345678');
To which I get the following stack trace:
Failed: unknown error: cannot focus element
(Session info: chrome=68.0.3440.106)
(Driver info: chromedriver=2.41.578706 (5f725d1b4f0a4acbf5259df887244095596231db),platform=Mac OS X 10.13.6 x86_64)
WebDriverError: unknown error: cannot focus element
(Session info: chrome=68.0.3440.106)
(Driver info: chromedriver=2.41.578706 (5f725d1b4f0a4acbf5259df887244095596231db),platform=Mac OS X 10.13.6 x86_64)
at Object.checkLegacyResponse (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/error.js:546:15)
at parseHttpResponse (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/http.js:509:13)
at doSend.then.response (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/http.js:441:30)
at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: WebElement.sendKeys()
at Driver.schedule (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/webdriver.js:807:17)
at WebElement.schedule_ (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/webdriver.js:2010:25)
at WebElement.sendKeys (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/webdriver.js:2174:19)
at actionFn (/home/ba/workspace/ionic-test/node_modules/protractor/built/element.js:89:44)
at Array.map (<anonymous>)
at actionResults.getWebElements.then (/home/ba/workspace/ionic-test/node_modules/protractor/built/element.js:461:65)
at ManagedPromise.invokeCallback_ (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/promise.js:1376:14)
at TaskQueue.execute_ (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/promise.js:3084:14)
at TaskQueue.executeNext_ (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/promise.js:3067:27)
at asyncRun (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/promise.js:2927:27)Error
at ElementArrayFinder.applyAction_ (/home/ba/workspace/ionic-test/node_modules/protractor/built/element.js:459:27)
at ElementArrayFinder.(anonymous function).args [as sendKeys] (/home/ba/workspace/ionic-test/node_modules/protractor/built/element.js:91:29)
at ElementFinder.(anonymous function).args [as sendKeys] (/home/ba/workspace/ionic-test/node_modules/protractor/built/element.js:831:22)
at UserContext.<anonymous> (/home/ba/workspace/ionic-test/e2e/src/app.e2e-spec.ts:29:28)
at /home/ba/workspace/ionic-test/node_modules/jasminewd2/index.js:112:25
at new ManagedPromise (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/promise.js:1077:7)
at ControlFlow.promise (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/promise.js:2505:12)
at schedulerExecute (/home/ba/workspace/ionic-test/node_modules/jasminewd2/index.js:95:18)
at TaskQueue.execute_ (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/promise.js:3084:14)
at TaskQueue.executeNext_ (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/promise.js:3067:27)
From: Task: Run it("displays the login/signup screen") in control flow
at UserContext.<anonymous> (/home/ba/workspace/ionic-test/node_modules/jasminewd2/index.js:94:19)
at attempt (/home/ba/workspace/ionic-test/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4297:26)
at QueueRunner.run (/home/ba/workspace/ionic-test/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4217:20)
at runNext (/home/ba/workspace/ionic-test/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4257:20)
at /home/ba/workspace/ionic-test/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4264:13
at /home/ba/workspace/ionic-test/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4172:9
at /home/ba/workspace/ionic-test/node_modules/jasminewd2/index.js:64:48
at ControlFlow.emit (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/events.js:62:21)
at ControlFlow.shutdown_ (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/promise.js:2674:10)
at shutdownTask_.MicroTask (/home/ba/workspace/ionic-test/node_modules/selenium-webdriver/lib/promise.js:2599:53)
From asynchronous test:
Error
at Suite.<anonymous> (/home/ba/workspace/ionic-test/e2e/src/app.e2e-spec.ts:16:3)
at addSpecsToSuite (/home/ba/workspace/ionic-test/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1107:25)
at Env.describe (/home/ba/workspace/ionic-test/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:1074:7)
at describe (/home/ba/workspace/ionic-test/node_modules/jasmine/node_modules/jasmine-core/lib/jasmine-core/jasmine.js:4399:18)
at Object.<anonymous> (/home/ba/workspace/ionic-test/e2e/src/app.e2e-spec.ts:5:1)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Module.m._compile (/home/ba/workspace/ionic-test/node_modules/ts-node/src/index.ts:439:23)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/ba/workspace/ionic-test/node_modules/ts-node/src/index.ts:442:12)
By looking at the HTML I notice that the actual input is inside the shadow DOM so I tried accessing it by using:
element(by.deepCss('input[name="phoneNumber"]')).sendKeys('12345678');
But it gave me: Failed: element not visible and it seems like it's finding the <input type="hidden" …> that ion-input creates. So I changed it to search for input[type="tel"] as that's unique, but no luck as it now instead says there isn't any item.
The shadow DOM is new to me and I don't really know much about it, am I missing something obvious with how I should behave with it? I've attached a screenshot from my Chrome inspector view.
In ionic4, you can handle ion-input with this:
element(by.css('ion-input[name="phoneNumber"] input')).sendKeys('91296754')
After posting this I found the protractor-uisref-locator Protractor locator plugin which added support for another Ionic component. So I took that and changed it a bit and created this locator that can find my inner input for me. I have no idea why by.deepCss didn't work and would love to understand that better.
by.addLocator('ionInput', (name, opt_parentElement) => {
const using = opt_parentElement || document,
ionInput = using.querySelector('ion-input[name="' + name + '"]');
if (ionInput) {
return ionInput.shadowRoot.querySelector('input');
} else {
return;
}
});
And usage:
element(by.ionInput('phoneNumber')).sendKeys('12345678');
In Ionic 5, I needed to use the following:
var email_input = element(by.css('ion-input[ng-reflect-name="email"] input'));
email_input.sendKeys("somemail#somedomain.it")

Getting error "Failed: Fn is not a function" when try to automate e2e for a login page

I am trying to automate and rum a simple register form but i am getting error saying "Failed: Fn is not a function". Below is my code
describe('Locator testing by model', function(){
it('automate user register form', function(){
browser.get('http://www.way2automation.com/angularjs-protractor/registeration/#/login');
element(by.model('Auth.user.name')).sendKeys('angular');
element(by.model('Auth.user.password')).sendKeys('password');
element(by.model('model[options.key]')).sendKeys('zafaque');
element(by.buttonText('Login')).click();
browser.wait(3000);
});
});
below is the error detail
1) Locator testing by model automate user register form
Message:
Failed: fn is not a function
Stack:
TypeError: fn is not a function
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:716:14
at TaskQueue.execute_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2913:14)
at TaskQueue.executeNext_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2896:21)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2820:25
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:639:7
at process._tickCallback (node.js:369:9)
From: Task: <anonymous>
at pollCondition (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2359:16)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2355:9
at new ManagedPromise (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:1082:7)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2354:14
at TaskQueue.execute_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2913:14)
at TaskQueue.executeNext_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2896:21)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2775:27
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:639:7
at process._tickCallback (node.js:369:9)
From: Task: <anonymous wait>
at ControlFlow.wait (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2352:17)
at Driver.wait (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:712:29)
at ProtractorBrowser.to.(anonymous function) [as wait] (/usr/local/lib/node_modules/protractor/built/browser.js:60:29)
at Object.<anonymous> (/Users/zafaque/WebstormProjects/autotation/udemyProject/loginTest.js:12:17)
at /usr/local/lib/node_modules/protractor/node_modules/jasminewd2/index.js:94:23
at new ManagedPromise (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:1082:7)
at controlFlowExecute (/usr/local/lib/node_modules/protractor/node_modules/jasminewd2/index.js:80:18)
at TaskQueue.execute_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2913:14)
at TaskQueue.executeNext_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2896:21)
at /usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2820:25
From: Task: Run it("automate user register form") in control flow
at Object.<anonymous> (/usr/local/lib/node_modules/protractor/node_modules/jasminewd2/index.js:79:14)
From asynchronous test:
Error
at Suite.<anonymous> (/Users/zafaque/WebstormProjects/autotation/udemyProject/loginTest.js:6:5)
at Object.<anonymous> (/Users/zafaque/WebstormProjects/autotation/udemyProject/loginTest.js:4:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
You are using browser.wait() incorrectly. Refer the official documentation for correct usage here
browser.wait() accepts params in the below order
first argument is a condition which can be a function or a
webdriver.promise.Promise or a Expected Condition Second Argument is
the timeout
But you are passing timeout as the first argument. Incase you just wait a conditionless wait - Just use browser.sleep(3000)

MongoDb Gridstore Error

I have been getting this error for months not being able to save to the out of the box mongodb Gridstore. This is the only error message I constantly get. Any thoughts?
Uncaught internal server error. [TypeError: Cannot read property 'getFileData' of undefined] TypeError: Cannot read property 'getFileData' of undefined
at getHandler (/usr/local/lib/node_modules/parse-server/lib/Routers/FilesRouter.js:69:22)
at Layer.handle [as handle_request] (/usr/local/lib/node_modules/parse-server/node_modules/express/lib/router/layer.js:95:5)
at next (/usr/local/lib/node_modules/parse-server/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch (/usr/local/lib/node_modules/parse-server/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/usr/local/lib/node_modules/parse-server/node_modules/express/lib/router/layer.js:95:5)
at /usr/local/lib/node_modules/parse-server/node_modules/express/lib/router/index.js:277:22
at param (/usr/local/lib/node_modules/parse-server/node_modules/express/lib/router/index.js:349:14)
at param (/usr/local/lib/node_modules/parse-server/node_modules/express/lib/router/index.js:365:14)
at param (/usr/local/lib/node_modules/parse-server/node_modules/express/lib/router/index.js:365:14)
at Function.process_params (/usr/local/lib/node_modules/parse-server/node_modules/express/lib/router/index.js:410:3)