how can I send the command Keys.chord(Keys.LEFT_CONTROL) for the entire page and not for a specific item
How can I send the command Keys.chord(Keys.LEFT_CONTROL) for the entire page
If you think about this from a user’s perspective, what do they do? Do they land on the page and issue a single Ctrl key? Does that work? Or do they need to give focus first to a specific element first? Does the page force the focus to a specific element?
Think of your testing code as a dumb robot. Make it do as closely as you can, exactly what a user would do. If it works, great, you succeeded. If it doesn’t work… now you maybe have to do things a little differently. But to advise you further, I’d need to know how the key handling code is wired up on the page. For example, perhaps there’s a key handler attached to the BODY element which catches the Ctrl key. Maybe it’s somewhere else…
I’m intrigued to know what happens when the Ctrl key is sent to the page – normally, a solitary Ctrl key is ignored.
water tank cleaning services in Karachi are also doing very well same as it.
i need to send the click on the xpath = ‘/html/body’
But it answer me: “cannot focus on element”
Yes dear you are right this is the right key for command.
If any thing know more about it please let me know.
I am working with Supreme Fumigation as a I.T developer and much more .This is the best Company Fumigation in Karachi