Questions tagged [string]
a string is traditionally a sequence of characters, either as a literal constant or as some kind of variable.
11
questions
0
votes
1
answer
40
views
Best way to automate File contents verification using Selenium/Java?
In my application, there are lot of files that contain financial data and those are sent to different parties. So, I have to automate verification of content of all these files. Now, each file has a ...
0
votes
1
answer
32
views
How to iterate over List<WebElement> and click link based on text on any page inside webtable?
On my page, I have 25 Links displayed inside a web table, now i have to traverse all pagination pages, like 1-25, 25-50, 50-75 etc...my specific link text can be in any pagination set, it can be on ...
0
votes
0
answers
13
views
How to click on a specific link which is inside <table> element based on multiple pages and if not found click on "next" pagination link in Selenium?
How to click on a link that is under a table element, but that is not visible on first page. There are pagination links "previous" & "next" on the page, and i want to iterate ...
0
votes
1
answer
44
views
Automatically testing for typical edge cases?
I want to set up automated testing on my UI components. For anything that renders textual data (i.e. strings or numbers), I would like to automatically test for typical edge cases, such as:
Very long ...
2
votes
2
answers
641
views
How to validate if .txt file format is correct as a part of File processing in Automation framework?
In my Selenium+Java automation framework, I need to open a .txt file or any other extension file and then see if the text is in a particular format. Now, I need to see if all lines are in this format ...
3
votes
1
answer
739
views
How to count max character text for JSON api test
I have a JSON free text field that allows maximum 1000 characters.
I want to check whether user is able to send paragraphs,
so when I parse the text to string using online tools some extra characters ...
1
vote
2
answers
876
views
How to getText concatenating 2 strings in Protractor
I have 2 variables that get the texts: locationDisplayed and bindisplayed.
I want the 3rd variable: expectedDescription concats the text of the first 2 vars.
Here is the code:
let locationDisplayed = ...
0
votes
1
answer
5k
views
Escape character issue in "run keyword if" in Robot Framework
This script is not working as the string contains single quotes (') and double quotes (") and comparing the string is not working in this case.
${Key1}= set variable It\'s in \"Detailing\": ...
-2
votes
1
answer
2k
views
How to convert a String to int on assert
Assert cannot be able to find value because it's expecting a String but an integer is present instead. How can I be able to convert this String to an integer.
I tried using Integer.parseInt(number) ...
-1
votes
1
answer
411
views
Error while parsing String value into Double [closed]
Thread.sleep(1000);
WebElement NetReceivable=wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath("html/body/form/table[2]/tbody/tr[2]/td/table[2]/tbody/tr/td/table/tbody/tr[19]/td[2]")));
...
-1
votes
1
answer
48
views
How to write Regex pattern to find a string between '=' and before '&' with after last '=' of URL [closed]
Regex pattern need to find below url values in bold color
http://abc.com/XMLFeed?clientkey=abtc&type=Products&ProductID=111&location=145
[=**abtc**&
=**Products**&
=**111**&...