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"?
Related
I've seemed to minimize the Main Menu Bar (not the specific term), resting at the top, or ceiling, in the Cloud9 IDE. There's a small drop-down arrow located on the top-center and you'd think that would be indicative of bringing it back down or something, but I'm getting no functionality out of my numerous, calculated clicks.
I've tried to enlarging it no avail, refreshing the URL, copy command, etc. and to my very little knowledge, surprisingly, have had no success. I'm using ChromeOS, if to supply any more assistance. Any ideas? Thanks for reading if you got this far, I sure do appreciate it.
Click on the thin empty space right at the top of the window and the bar will re-appear.
The arrow in the top center of the screen should show the File menu again. Try opening up the IDE in an incognito window to make sure no browser extensions are interfering.
If this doesn't work, you may try appending ?reset=1 to your workspace URL. Be warned that this will reset all your workspace settings, such as themes, keybindings, etc. This should reset your workspace layout as well.
The answer above is correct. The mouse will change to a hand once you click right above the top line. Tricky one.
In an Xcode Playground you can click the little circle next to the eye and it should show the console, however when I click mine it just shows the quick view box near the code. How can I correct this and set it back to default? I believe it originally worked like that but now does not.
Any suggestions
you can click the little circle next to the eye and it should show the console
I don't think that's right. I see the same result you do: clicking the eye pops open the Quick Look pane. This is exactly the same thing that happens when you point at a variable in a project while debugging: you can click the eye icon and see the contents of the variable in a Quick Look pane.
To open the console in a project or a playground, use the View->Debug Area->Activate Console command.
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.
I am very new to this, and my c9 terminal seems to be frozen. The cursor is blinking, but when I try to enter text, nothing shows up. I have tried exiting my workspace and reloading and it still will not work.
Opening a new terminal tab with the View menu or pressing ALT-T is the best bet to get a working terminal back (as mentioned in the comment above)... you may also find that having selected the broken terminal though, you can't click things in your menus anymore. I've found that pressing the Preview button and then closing it, seems to get the UI to be responsive again.
Supports official response is that you should perform workspace reset using ?reset=1 after your workspace url (which doesn't last or work very well in my experience).
This can happen after pressing ctrl-s, pressing ctrl-q should restore it. See https://unix.stackexchange.com/a/12108/41174 for explanation.
I tried ALT-T and ?reset=1. Nothing helped in my case.
I managed to bring my frozen terminal back to life by closing its tab. I ignored the warning that all processes would stop. Then I clicked on the rightmost tab with a plus sign. In the menu I selected "New Terminal".
You can click at the top right where CPU usage is shown. Then click on "Restart" when the menu appears.
I'm not sure if this is right, but I can't view the "code behind" in VB6. Everytime I click the "view code" for an object (for example a button), the code does not display.
Can you help me with this or any workaround for this? I need to do a breakpoint on this.
I ran into the same issue. Could not view the code or the designer.
Seems that VB6 lost track of where things should be displayed, whether offscreen or not I could not tell. Kept clicking View Code and View Object, and neither worked.
Found the solution:
Attempt to open the code or designer that doesn't show up. (It will get opened, just won't show)
Select Window from the menu, then select Cascade.
You should then see the code/designer show up on the screen. No re-install or remove/add needed.
You may need to do this each time, even after saving the .vbp (project) file, upon re-opening VB6 the files once again are not showing for me, but Cascade makes them visible again. (Anyone have any ideas on how to make this more permanent?)
Enjoy!
You may remove the form which is not showing the code in the project explorer window and add it again by right clicking on the project explorer window then select Add -> Form -> (instead of selecting in "New" tab navigate on the "Existing" tab then choose the form you have just remove and try viewing its code again). It will work 100% :D
Double click your controls and the source code will be shown.
Go to this link.
vb6 tutor