1

I want to verify PDF zoom in and out buttons but seems not able to get it done. I tried to open PDF in new tab and then verify but that is also not working.

I can see some tags and divs when inspect.

I tried diff. xpaths like :

//paper-fab[@aria-label='Zoom in']
//paper-feb

But it always returns ZERO when I check with list webelement.

Here is example URL :

https://pdfobject.com/static.html
Helping Hands
  • 5,292
  • 9
  • 60
  • 127

1 Answers1

1

I suggest you use Sikuli:

Sikuli automates anything you see on the screen. It uses image recognition to identify and control GUI components. It is useful when there is no easy access to a GUI's internal or source code.

I think there is no way to do what you are wanting with just Selenium. If you need to integrate Selenium and Sikuli, you can see this post on SOF: Calling to a Sikuli script from Python (Selenium) . It can give some ideas for you. Yet, maybe you can read a bit about the Robot class.

I hope this helps.

Dalton Cézane
  • 3,672
  • 2
  • 35
  • 60