#7 Find Elements Using Index and XPath last and position functions

#7 Find Elements Using Index and XPath last and position functions

QA Box Let's Test

3 года назад

3,569 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@dev9559
@dev9559 - 14.07.2023 20:55

I have a reference file where I have stored all the Xpath that are used in my project. The script was working fine but for the last few days I am getting an error message - 'Index out of bound'.
I showed it to one colleague he said to change the sequence of the Xpath i.e. Cut and paste the XPath of the web element where the script is failing to the top of the page(reference file) and it somehow worked.
But this is not the solution though as other people in the project area also updating that file and somehow the sequence is getting changed after some time and I am getting the same error again for one web element or another.
Any idea about this issue?

Ответить
@syronox5357
@syronox5357 - 26.03.2022 14:08

is there a way to get the first 2 buttons? or the first 3, the first and the third etc...?

Ответить
@sindhusudhakaran1731
@sindhusudhakaran1731 - 21.03.2021 20:47

Thank you !!! this video really helped

Ответить