Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am working on a Java project and I need to use jQuery (it is my task). Now I need to handle an alert and verify that the message I need is displayed. I dug up a bunch of information, but all of it is about creating alerts and etc.

enter image description here

Could someone explain it to me how it works and how I need to use it? Maybe it is impossible? I am using jQuery in my task.

At this time I have this code and I need to add functionality described above.

public void getCoordinates() {
    JavascriptExecutor js = (JavascriptExecutor) driver;

    js.executeScript("var position = $('.flash').position();" +
    "$('#top').val(Math.round(position.top));" +
    "$('#left').val(Math.round(position.left));" +
    "$('#process').click();");
}

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
833 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...