Here is a simple way to record the steps to reproduce a problem:
1. Start -> Run -> psr.exe
Following program opens:
2. Start record.
3. Perform your scenario.
4. Stop Record and save the file.
=> You will get a report with HD screenshots of everything you did. I was expecting a movie, but considering it's free and easy to use, I'm happy.
Source:
http://www.youtube.com/watch?v=70lmYJaUWJ8
Friday, February 14, 2014
Thursday, February 13, 2014
QTP / UFT - Object identification using XPath
Did you experience a situation where you had a WeElement that was visible only at mouse over, and UFT would not recognize it even if you pay for that?
Here is something to try:
1. Open site in Chrome browser.
2. Press F12 to see DevTools.
3. Go to the desired element, Right-click on it and select "Inspect Element".
4. The element will bie highlighted in the DevTools zone:
//*[@id="highcharts-0"]/svg
6. Enter the code in UFT. Should be something like:
Browser("Browser_Local").Page("MyPage").WebElement("xpath:="//*[@id='highcharts-0']/svg"").Click
Hope this helps!
Note: Special thanks to my colleague Mihai, who pointed this out.
Here is something to try:
1. Open site in Chrome browser.
2. Press F12 to see DevTools.
3. Go to the desired element, Right-click on it and select "Inspect Element".
4. The element will bie highlighted in the DevTools zone:
5. Copy XPath, and paste somewhere to use it, you should have something like this:
6. Enter the code in UFT. Should be something like:
Browser("Browser_Local").Page("MyPage").WebElement("xpath:="//*[@id='highcharts-0']/svg"").Click
Hope this helps!
Note: Special thanks to my colleague Mihai, who pointed this out.
Subscribe to:
Posts (Atom)