Skip to content
Advertisement

Selenium / More-Element clicking not possible allways?

I try to click on the more element on these pages – with the following code

for the following link this works fine with finding element per xpath:

JavaScript

But when i try the same code with another link / app like https://apps.apple.com/us/app/contacts-backup-pro-restore/id1120943403?uo=4 the more-element is not opening anymore

I saw that the xpath is slightly different so i tried it with

JavaScript

but this isn´t working

then i tried it with class-selector instead with

JavaScript

but this isn´t working for both links now…

Is there anyway to get both links running – in the best case with css-selectors?

Advertisement

Answer

Yes you can use the below xpath :

JavaScript

this should click on more on the both pages.

Xpath is basically looking for In-App Purchases and then the following button which is part of it, so you can use on any app store web page

and you can click it like this :

JavaScript

Imports :

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement