Complete List of Commands of SELENIUM IDE [closed] - selenium

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I m new to selenium and in first phase i am trying hard to grasp IDE commands but the main problem that i m facing s that i m unable to search a Single helping material which clearly tell me the following points if any one knows kindly refer me
Complete List of Commands
Commands with reference to scenario(e.g when we use asserttext or
verify text)
what will be the values of Target and value.

http://release.seleniumhq.org/selenium-core/1.0.1/reference.html
This is the complete reference that contains
All the commands supported.
Descriptions to the methods including explanation of the difference between assert and verify.
The target is usually the locator of the element. The value is usually a parameter of the method - for instance, when you're typing into a field, the value would be the text you want to type in. More in the reference of every single command - not all the commands take both target and value, some have their values restricted etc. See your particular command to know what parameters it needs.
Anyway, the most helpful piece of documentation for IDE is still the official docs even though they don't really have a list of all commnads.

1) If you are using the Selenium ide for firefox the full list of commands is visible by clicking the down arrow in the command section.
Failing that there should be plenty of useful information in the selenium documentation
http://docs.seleniumhq.org/docs/index.jsp
2) This one I can't help with very much, as I generally use asserts everywhere. If i want my script to fail at a particular point if text is not present in java I use something like
assertTrue(driver.getPageSource.contains("Text to verify");
3) Target is the element and value is the current value of that element.
Example - Assert that text is present
Command - assertTextPresent
Target - Blank
Value - Text to search for
Example 2 - Field contains certain text
command - assertTextPresent
Target - id=idOfField (id, xpath, css, name etc)
Value - Text to search for

http://software-testing-tutorials-automation.blogspot.in/search/label/selenium%20ide
This website have a lot of IDE examples and tutorials. If you are beginner if so this website is the best I think.

I think this is the most complete and most readable list of the selenium IDE commands:
http://www.frontendtest.org/blog/selenium-ide-commands/

Related

Zoho: Deluge: What techniques are used to debug Zoho Deluge syntax errors? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed last year.
This post was edited and submitted for review last year and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
Zoho: Deluge: What techniques are used to debug Zoho Deluge syntax errors?
Often the online Zoho Deluge code provides minimal information regarding syntax errors. What techniques are successful to quickly identify the code with the incorrect syntax?
Earlier version of the question
Zoho: Deluge: syntax checking for Zoho Deluge code in an offline editor (vim, emacs, vscode...)?
Does anyone have suggested techniques for syntax checking Zoho Deluge code when editing the code offline from Zoho?
Background:
I often write/modify deluge code in offline editors like vim, emacs and nano because I'm used to their keyboard options and their ability to 'diff' different versions of the code. Then I paste the code back into the Zoho Deluge editor which sometimes reports some syntax error that I missed when working in the offline editor.
Some Practical Deluge Debugging Steps
Over time, I developed these notes for debugging Zoho-Deluge code. Posting them here in case it helps anyone who runs across this question.
The Zoho Deluge Editor's syntax error messages are often general in nature. The most common one is:
"Improper Statement. Error might be due to missing ';' at the end of line or incomplete expression"
The full list of error messages is here.
https://www.zoho.com/deluge/help/error-messages.html
This is a good reference for when one runs across an unfamiliar error message.
Techniques for debugging Zoho Deluge syntax errors.
Check for missing end of line semi-colons.
Check for missing '+' signs or double-quotes in recently added string construction.
Example: mystr = "this" "that" + "other";
Example: mystr = "this" + "that + "other";
Check for a recently added function call where the data type is included before the variable:
Example MyFunction(string Param); should be MyFunction(Param); when calling it.
Check if recently added ',' (comma) was typed in as '.' (dot).
Check for Missing paren at the end of an 'if' clause that includes multiple parens.
Example: if(response.get("responseCode")
Check that 'info' isn't missing at the beginning of a debug/display statement:
Examples
bad: myvar;
good: info myvar;
Check there there isn't a semi-colon at the end of a 'for each' loop statement but before the curly brackets
Examples
bad: (has comma at the end of the 'for each' line
for each field in fields;
{
...
}
good
for each field in fields
{
...
}
Check that there isn't a trailing comma in a list definition.
Examples
bad: mylist = {"this", "that",};
good: mylist = {"this", "that");
Visual Studio Code has one if you search extensions for deluge.

Scenario Outline And Examples in karate [duplicate]

This question already has an answer here:
In Karate Scenario Outline test, how to pass param values in the Examples table through a variable
(1 answer)
Closed 1 year ago.
I want to run my scenario with all the images that i have in my resource folder. meaning every time hitting same api with different image(converting them to base64encoding first) .But as this images already are in resource folder than it does not make sense to save with some name or records in csv for scenario outline purpose. Can i call a my own function (having code to take the image from resource folder and convert it into base64) in Examples section , So that for every image it will hits the same api again.
Yes. First write some java code to get a list of the image files. You can refer this code for ideas: https://stackoverflow.com/a/65035825/143475
If that is too hard, then just create a CSV file with a list of paths. Let me say that Karate is designed for testing, but you seem to be expecting something else. Karate is not a "general purpose" programming language. But it can be made to do extreme things by Java interop.
One you have a JSON array, then it can be used as the data-source for the Examples: section: https://github.com/intuit/karate#json-array-data-source
You can refer other answers for Base64 conversion: https://stackoverflow.com/a/46452864/143475
All the things you want to do is possible, but please do some research and try. And the next time you ask a question, please show what you tried and give examples instead of just a broad question, thanks.

Variable does not exist but compile works, runtime fails [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I have inherited a bunch of Access projects. I found a very strange issue where some form code accesses a variable that does not exist. The compile works fine, intellisense will auto complete the variable but at runtime I get an error 2465, can't find the field 'xxx' referred to in your expression.
The field most certainly does not exist, there is no variable by that name.
Any ideas why the compiler is not finding the issue?
I think it may have something to do with the query to fill the form. I think it did have the column XXX at some point, then it was removed. The compile still works but the run does not. I'm not sure.
There is no code with this question because the code is not at fault. If you read the accepted answer below its a 'feature' of Access that the VBA compiler uses the auto generated column names from a record source as variable names, modifying the query breaks this linkage.
You don't mention if the var comes up with you type me + "dot" in the given form.
This would reveal important information.
You can also type in the variable name (it it is not a me.dot var) and then hit shift f2, and that should/can jump you to the location of the variable.
However, if this is a me.dot value? then open the form in design mode. Display property sheet, data tab.
Now select and CUT out the forms datasource to your paste buffer. You now must TAB out of the datasource. Now, tab back in, re-paste in the forms datasource, and AGAIN tab out. This forces access to re-generate the "me." members for the form. So, over time it is possible to delete columns and controls on that form, but the "members" are thus no re-generated until such time you do above.
so, the missing detail here is this a me.dot intel-sense, or is this some global var defined in some code module? As noted, if this is a not a me.dot member of a form, then click on that var, and try shift-f2 and see if that finds the variable.
Of course in the vba editor, you can also do a ctrl-f and search the GLOBAL application for all and any occurrences of that variable - and thus such a search of all code would and could again find the origin of that variable.

Bitdefender detects my console application as Gen:Variant.Ursu.56053 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I've developed a console application that does a lot of routines, but the Antivirus detected it as a malware of type Gen:Variant.Ursu.56053.
How can I fix this without touching the antivirus policy because it's not allowed for us to create any exceptions for any found threat.
I'd like also to mention that If i changed the assembly name the antivirus is no longer consider the new file virus, but it looks that it considers it virus because I invoke it many times, with different parameters.
Any suggestions, I'm really suffering from this,
I know this thread is very old, but for people which will come here - to fix this issue simply add icon to the program, im not even joking, it works.
FALSE +VE ALERT!!! Many antivirus engines have name pattern matching as their Swiss-knife to detect malicious files,If any of them matches the name they have in their Database then you can't do much about it. Its simply became a False +ve !!! Also your assembly name should consist of the technology area and component description, or company name and technology area (depending on your preferance). So try changing it to more specific one. :)
Assuming that you are talking about .NET (with relation to Visual Studio) For Ex:
Project: Biometric Device Access
Assembly: BiometricFramework.DeviceAccess.dll
Namespace: ACME.BiometricFramework.DeviceAccess
I had the same problem with Bitdefender, but mine is a Gen:Variant.Ursu.787553 when I tried creating a .exe file from my C program.
I simply moved it out of quarantine manually, and it worked well. You might have to that every time you build a new program. Hope this helps!

How do I get a list of the Velocity objects and APIs usable in user macros in Atlassian Confluence? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I need to write some user macros in Atlassian Confluence. It uses the Apache Velocity templating engine. How can I find which APIs are available in that context?
For example, one community-provided macro uses objects like $spaceManager. How can I enumerate all of the objects that are available, and also get documentation for their methods?
The page on the Atlassian site listing the objects is incomplete: not only does it only list a small fraction of the true objects available, it's also not specific to the user macro context, or even to my specific version of Confluence. (For example, user macros are given a different Velocity context than Velocity used in other plugin points and have different objects available, and the objects available in Confluence 5.1 are different from those available in Confluence 5.6.)
There are similar questions on the Atlassian Answers site, but none point to complete API and type references.
The official list of Velocity objects visible in Confluence is listed on Atlassian's site, but as you may have noticed, it is far from complete.
With JIRA, there is a trick that one can use to list all objects in the current Velocity context:
#foreach($p in $ctx.keySet().toArray())
$p.toString() - $ctx.get($p).getClass().getName().toString()
#end
Unfortunately, the JIRA trick above does not work for Confluence because Confluence does not expose the ctx map.
Luckily, you mentioned that you are writing user macros, so not all is lost! Using another trick to access objects that are not normally available in the default context, you can punch a hole through to the class that provides the Velocity context for user macros and give yourself a copy. Combining the two approaches, we get the following for Confluence:
#set($macroUtilClass=$action.class.forName('com.atlassian.confluence.renderer.radeox.macros.MacroUtils'))
#set($getContextMethod=$macroUtilClass.getDeclaredMethod('defaultVelocityContext',null))
#set($ctx=$getContextMethod.invoke(null))
#foreach($p in $ctx.keySet().toArray())
$p.toString() - $ctx.get($p).getClass().getName().toString()<br/>
#end
This gives you a list of all objects available and their corresponding types, like this:
res - com.atlassian.confluence.web.filter.DebugFilter$LoggingResponseWrapper
bootstrap - com.atlassian.confluence.setup.DefaultBootstrapManager
settingsManager - com.atlassian.confluence.setup.settings.DefaultSettingsManager
userAccessor - com.sun.proxy.$Proxy54
seraph - com.atlassian.confluence.util.SeraphUtils
xsrfTokenGenerator - com.atlassian.xwork.SimpleXsrfTokenGenerator
...
To find the methods available through each of those objects, you will need to look up the corresponding JavaDocs by the class name. I find that Google is often the fastest path to done, but you can also go directly to the JavaDocs (for example, for the SpaceManager) and then root around in the other packages or adjust the URL to match the class you want. You will also want to adjust the "latest" in the URL to correspond to the actual version of Confluence you have installed. Lastly, a few of the classes are hidden behind proxies (like userAccessor above), but the variable name often matches the class name, so these are usually easy to figure out.
Note that this example is specifically tailored for user macros. The objects available in other Velocity contexts will certainly be different.