i have an issue trying to disable the event place_changed from an autocomplete on blur, as soon as i type, the list pop-ups and you can navigate with the arrows through the list, if i click an option, it fires place_changed, that works fine, but if i navigate through the options with the arrow keys, and left one option with focus, if i simple click outside without selecting, it does fire place_changed too...
That behavior isn't what i want, cause i feel anyone will find clicking outside as,ignoring whatever you were doing, like... "Hey, i didnt select the options, i just navigated through them"
Related
Where to look for code that calls a window like this? Is it JavaScript on browser's side or something else? This modal window is shown to fix an address of work order (when user changes it) and make it the same as the address of account. I do not want it and need to switch the window off.
It is Javascript which is firing on change of your Field (work order).
It is quite easy to turn it off.
Go to Setting--> Customizations click on it
Then click on Customize the system
Then Select your Main form.
Then click on your particualr filed and popup will open something like below
When you double click you will see below option, just uncheck enable and the function which is firing on change of your work order will be disabled.
Next in my list of protractor woes:
I have a case where I click on a select element and hover over the empty choice at the top, and grab a screenshot of that. Or at least I try. It grabs the screenshot, no errors, and moves on. However, not with the select box open. Just a closed select box.
What am I missing? Here's the snippet:
createPage.userid.click();
// Take screenshot of page
browser.takeScreenshot().then(function (jpg) {
writeScreenShot(jpg, 'screenshots/deleteUser.jpg');
});
I've tried a few other things I've found on here like trying to click it open, and then hovering the option, etc. but nothing works.
EDIT:
Something I've noticed that may have to do with this. When I let the browser run behind an open other window, when the dropdown opens, it shows up in front of said window, totally detached from the browser. Which reminded me of one of those key concepts I learned when I was a wee web developer that dropdown menus are given a z-index pretty much above everything else when they open. Could it simply be that protractor can't see the open dropdown because it's so "high up"?
I'm trying to imitate a feature of Windows. For example, when you're in a folder's properties, and then open the 'Advanced' popup from the properties page; if you try to click out of it the menubar flashes and a windows error sound is made. It is not until you close the popup by pressing okay or cancel or X that you can continue.
I would like to imitate this feature in my VB.NET project, thinking there would be an easy enough way to do this, but I cannot find one.
Show the second form as Dialog from the first form. While the second form is still open, user can't interact with the first form.
let me put it simple.
With Firefox 29,
I add a check box control next to the back & forward button in the toolbar "nav-bar".
It works. I mean I can do check and uncheck, and the javascript code will be triggered.
Now, my problem: after I checked the checkbox in one tab, I found that the checkbox in all other tabs are also checked, and if I uncheck any of them, the checkbox in all other tabs will be unchecked.
Why they change as one? I would like them to be unrelated or separated. In another word, I want the control (checkbox or button or label etc) to be tab-specific.
All suggestions are appreciated.
I have a complicated mess of code (built by a team of 7 over the course of several years) that incorporates multiple libraries - jQuery and angularjs, specifically.
I know that the value of a variable changes when I click a certain radio button, but I have no idea what is running when that happens to cause the variable to change. I've tried console.log in every place I can think of, but am somehow still missing the action that's changing the variable.
I know how to debug with Firebug if I know where to place my breakpoint, but in this case, I don't. Is there any way to tell Firebug to start debugging at the line that executes immediately after the radio button is clicked? In other words, when I click the radio button, open Firebug's Script panel to the first line in order of execution, wherever that line may be.
If you have chrome you can right click on the checkbox -> inspect element -> event listeners
Is there any way to tell Firebug to start debugging at the line that
executes immediately after the radio button is clicked?
Yes, this feature is called Break On Next.
Note that Firebug has much more features to debug your scripts besides setting breakpoints within the Script panel. These features are described in the 'Script Debugging' page inside the Firebug wiki.
Furthermore the Watch side panel allows you to inspect the variable to see, at which step it is changed.