robotframework - Robot Framework Get Text -


I am using robot framework selenium using python. I need help grabbing a certain part of the string, without getting an external library. It says that the text says "Your limit for your product is $ 0- 400", so I want to be able to get 400 and the paste is somewhere else in the test. The number is not always 400, sometimes it can be 55 or something, so I think I need a GET text, starting with a dollar sign, there will be two spaces of space and whatever is left out Take it. Or I can get the first number and add 10. Like this example, its 0 so I want to paste it. Please tell me!

"Get it right" should cover it. You just have to identify the stop point, which in your example looks like it would be hyphen between two number values.

For example: To remove the last five digits of this string, ABC12345 wants to create a variable for assigning the text.

  $ {number} = Get text (defined location of text, subtract bracket)   

Then to get the remainder of the string after your order Use this command to identify the blocked point (C).

  $ {desiredNumber} = Get the right $ {number} from C   

This is essentially creating a new variable, which After the values ​​derived from the original variable are defined as

Hope this helps

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -