Finding the coordinates of the browser alerts

Hi Team,

I'm *Rajapriya Radhakrishnan* and have some queries specific to browser
alerts. As I'm a novice in web browser development, I'm unsure if I have
reported my query to the relevant group of w3c. If it is not, please guide
me where exactly I need to raise my query.

*The scenario is*, I'm working on a project where the browser is controlled
remotely as the remote machine is not an user-interactable one.
> On the host side, I can find out the browser coordinates where the user
is touched and what action(such as tap, double tap) is done. Then the
coordinates and the action details will be forwarded to the remote browser.
> On the remote side, it will receive that info first, then use the pointer
events to control the browser according to the received data.

NOTE: Please take a look at the attached file
(firefox_confirm_dialog_box.png)

*Queries are,*
1. How to know if there is an alert in the browser page.
2. As the height of the alert is set dynamically w.r.t. the description
length, I need to find out the dimension and origin points of the alerts.
How can I get the origin points (x, y) and dimension(width and height) of
an alert?

Could you please check and help me out on this. If you need any
information, please let me know.


Best Regards,
Rajapriya R.

Received on Saturday, 28 May 2022 22:11:53 UTC