How can we check if we have an input like confirm, and we need to check the message in alert. It should be like: "Hello" + (inputText)+ " , are you sure you want to confirm?".
Hii can you please let me know how can I print the value of a textbox (If we don't know what is the value is written it may be anything so can we get the value at log ??) please reply
Can you tell me how to get the value of width from below html div class=progress part=progress style=width:70px.. I can't able to retrieve the style value using attr command. Note: width value is keep on changing
Love the way you explain
So much clarity!!! 🙏
How can we store in a variable and use it for comparison ?
Thanks a lot :)
How can we check if we have an input like confirm, and we need to check the message in alert.
It should be like: "Hello" + (inputText)+ " , are you sure you want to confirm?".
String inputStr = "Alertatext";
Alert .sendkeys(inputStr);
Assert.assertequal("hello" + inputStr + "are you...", Alert.getText());
Hii can you please let me know how can I print the value of a textbox (If we don't know what is the value is written it may be anything so can we get the value at log ??) please reply
You can refer github.com/sunilpatro1985/Cypress_TypeScript/blob/main/cypress/support/commands.js#L54
Can you tell me how to get the value of width from below html div class=progress part=progress style=width:70px.. I can't able to retrieve the style value using attr command. Note: width value is keep on changing
Can you try using webelement.getCssValue("width") instead of getattribute method.
@@qavboxgetCssValue is not a function error throwing. Fyi- i am testing in cypress
though I used the same code, I am not getting texbox value
Thank you!
Thank you!!